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

Method getModuleList

hi_scripting/scripting/api/DspFactory.cpp:308–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306typedef const Array<Identifier> &(*getModuleList_)();
307
308var DynamicDspFactory::getModuleList() const
309{
310 if (library != nullptr)
311 {
312 getModuleList_ d = (getModuleList_)library->getFunction("getModuleList");
313
314 if (d != nullptr)
315 {
316 const Array<Identifier> *ids = &d();
317
318 Array<var> a;
319
320 for (int i = 0; i < ids->size(); i++)
321 {
322 a.add(ids->getUnchecked(i).toString());
323 }
324
325 return var(a);
326 }
327 else
328 {
329 throw String("getModuleList not implemented in Dynamic Library " + name);
330 }
331 }
332
333 return var::undefined();
334}
335
336var DynamicDspFactory::getErrorCode() const
337{

Callers 1

Calls 9

varFunction · 0.85
dFunction · 0.50
StringClass · 0.50
getFunctionMethod · 0.45
sizeMethod · 0.45
addMethod · 0.45
toStringMethod · 0.45
getUncheckedMethod · 0.45
getIdListMethod · 0.45

Tested by

no test coverage detected