MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / isComponentAvailable

Function isComponentAvailable

src_cpp/yaafe-python/yaafecore.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52int isComponentAvailable(char* id)
53{
54 const vector<const Component*>& pList = ComponentFactory::instance()->getPrototypeList();
55 for (vector<const Component*>::const_iterator it=pList.begin();
56 it!=pList.end(); it++)
57 if ((*it)->getIdentifier()==id)
58 return 1;
59 return 0;
60}
61
62char** makeStrList(const vector<string>& vec) {
63 char** out = new char*[vec.size()+1];

Callers

nothing calls this directly

Calls 1

getIdentifierMethod · 0.45

Tested by

no test coverage detected