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

Method getGroupByUuid

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:354–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354ValueTree CtrlrLuaMethodManager::getGroupByUuid(const Uuid &groupUuid)
355{
356 if (managerTree.getChildWithProperty (Ids::uuid, groupUuid.toString()).isValid())
357 {
358 return (managerTree.getChildWithProperty (Ids::uuid, groupUuid.toString()));
359 }
360 else
361 {
362 for (int i=0; i<managerTree.getNumChildren(); i++)
363 {
364 if (managerTree.getChild(i).hasType(Ids::luaMethodGroup) && managerTree.getChild(i).getNumChildren() > 0)
365 {
366 ValueTree foundGroup = findGroupRecursive (managerTree.getChild(i), groupUuid);
367 if (foundGroup.isValid())
368 {
369 return (foundGroup);
370 }
371 }
372 }
373 }
374
375 return (ValueTree());
376}
377
378ValueTree CtrlrLuaMethodManager::findGroupRecursive(ValueTree treeToSearch, const Uuid &groupUuid)
379{

Callers

nothing calls this directly

Calls 4

getNumChildrenMethod · 0.80
isValidMethod · 0.45
toStringMethod · 0.45
getChildMethod · 0.45

Tested by

no test coverage detected