| 674 | } |
| 675 | |
| 676 | juce::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 | |
| 694 | var DspNetwork::createFromJSON(var jsonData, var parent) |
| 695 | { |
nothing calls this directly
no test coverage detected