| 306 | typedef const Array<Identifier> &(*getModuleList_)(); |
| 307 | |
| 308 | var 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 | |
| 336 | var DynamicDspFactory::getErrorCode() const |
| 337 | { |
no test coverage detected