MCPcopy Create free account
hub / github.com/christophhart/HISE / createAndAdd

Method createAndAdd

hi_scripting/scripting/scriptnode/api/DspNetwork.cpp:676–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676juce::var DspNetwork::createAndAdd(String path, String id, var parent)
677{
678 if (id.isEmpty())
679 {
680 StringArray unused;
681 id = getNonExistentId(path.fromFirstOccurrenceOf(".", false, false), unused);
682 }
683
684 auto node = create(path, id);
685
686 if (auto n = dynamic_cast<NodeBase*>(node.getObject()))
687 {
688 n->setParent(parent, -1);
689 }
690
691 return node;
692}
693
694var DspNetwork::createFromJSON(var jsonData, var parent)
695{

Callers

nothing calls this directly

Calls 5

createFunction · 0.50
isEmptyMethod · 0.45
fromFirstOccurrenceOfMethod · 0.45
getObjectMethod · 0.45
setParentMethod · 0.45

Tested by

no test coverage detected