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

Method checkId

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

Source from the content-addressed store, hash-verified

1123}
1124
1125void DspNetwork::checkId(const Identifier& id, const var& newValue)
1126{
1127 auto newId = newValue.toString();
1128
1129 auto ok = newId == initialId;
1130
1131 if (ok)
1132 getExceptionHandler().removeError(getRootNode(), scriptnode::Error::RootIdMismatch);
1133 else
1134 {
1135 Error e;
1136 e.error = Error::RootIdMismatch;
1137 getExceptionHandler().addError(getRootNode(), e, "ID mismatch between DSP network file and root container. \n> Rename the root container back to `" + initialId + "` in order to clear this error.");
1138 }
1139}
1140
1141juce::ValueTree DspNetwork::cloneValueTreeWithNewIds(const ValueTree& treeToClone, Array<IdChange>& changes, bool changeIds)
1142{

Callers

nothing calls this directly

Calls 3

removeErrorMethod · 0.80
toStringMethod · 0.45
addErrorMethod · 0.45

Tested by

no test coverage detected