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

Function listComponents

src_cpp/main.cpp:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36using namespace std;
37
38void listComponents()
39{
40 vector<string> components;
41 const vector<const Component*>& cList = ComponentFactory::instance()->getPrototypeList();
42 for (size_t i = 0; i < cList.size(); i++)
43 {
44 components.push_back(cList[i]->getIdentifier());
45 }
46 sort(components.begin(),components.end());
47 cout << "Available components : " << endl;
48 for (vector<string>::const_iterator it = components.begin(); it
49 != components.end(); it++)
50 cout << " - " << *it << endl;
51}
52
53void describeComponent(const std::string component)
54{

Callers 1

mainFunction · 0.85

Calls 2

sizeMethod · 0.45
getIdentifierMethod · 0.45

Tested by

no test coverage detected