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

Method getTableProcessor

hi_scripting/scripting/api/ScriptingApi.cpp:5971–5995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5969
5970
5971ScriptingObjects::ScriptingTableProcessor *ScriptingApi::Synth::getTableProcessor(const String &name)
5972{
5973 WARN_IF_AUDIO_THREAD(true, ScriptGuard::ObjectCreation);
5974
5975 if (getScriptProcessor()->objectsCanBeCreated())
5976 {
5977 Processor::Iterator<ExternalDataHolder> it(owner);
5978
5979 while (auto lut = it.getNextProcessor())
5980 {
5981 if (dynamic_cast<Processor*>(lut)->getId() == name)
5982 {
5983 return new ScriptTableProcessor(getScriptProcessor(), lut);
5984 }
5985 }
5986
5987 reportScriptError(name + " was not found. ");
5988 RETURN_IF_NO_THROW(new ScriptTableProcessor(getScriptProcessor(), nullptr));
5989 }
5990 else
5991 {
5992 reportIllegalCall("getScriptingTableProcessor()", "onInit");
5993 RETURN_IF_NO_THROW(new ScriptTableProcessor(getScriptProcessor(), nullptr));
5994 }
5995}
5996
5997hise::ScriptingApi::Synth::ScriptSliderPackProcessor* ScriptingApi::Synth::getSliderPackProcessor(const String& name)
5998{

Callers

nothing calls this directly

Calls 3

objectsCanBeCreatedMethod · 0.80
getNextProcessorMethod · 0.80
getIdMethod · 0.45

Tested by

no test coverage detected