MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / forEachXmlChildElement

Function forEachXmlChildElement

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:434–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432const String CtrlrLuaMethodManager::getTemplateForProperty(const String &methodName, const String &propertyName)
433{
434 forEachXmlChildElement (methodTemplates, e)
435 {
436 if (e->hasTagName("luaMethod"))
437 {
438 String linkedNames = e->getStringAttribute("name");
439 StringArray ar;
440 ar.addTokens (linkedNames, ",", "\"\'");
441
442 for (int i=0; i<ar.size(); i++)
443 {
444 if (ar[i] == propertyName)
445 {
446 return (cleanupMethod (e, methodName));
447 }
448 }
449 }
450 }
451
452 _ERR("CtrlrLuaMethodManager::getTemplateForProperty failed to find template for this method \""+methodName+"\" propertyName \""+propertyName+"\"");
453 return ("");

Callers 4

setBundleInfoMethod · 0.50
setXmlSourceMethod · 0.50
restoreColumnsMethod · 0.50

Calls 6

hasTagNameMethod · 0.80
getStringAttributeMethod · 0.80
addTokensMethod · 0.80
sizeMethod · 0.45
toStringMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected