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

Function describeComponent

src_cpp/main.cpp:53–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void describeComponent(const std::string component)
54{
55 const Component* c = ComponentFactory::instance()->getPrototype(component);
56 if (c)
57 {
58 cout << c->getIdentifier() << " : ";
59 if (c->getDescription() != "")
60 cout << c->getDescription();
61 cout << endl;
62 const ParameterDescriptorList& params = c->getParameterDescriptorList();
63 for (ParameterDescriptorList::const_iterator it = params.begin(); it
64 != params.end(); it++)
65 {
66 cout << " - " << it->m_identifier << " : " << it->m_description;
67 cout << " (default=" << it->m_defaultValue << ")" << endl;
68 }
69 return;
70 }
71}
72
73void printOutputFormats()
74{

Callers 1

mainFunction · 0.85

Calls 4

getPrototypeMethod · 0.80
getIdentifierMethod · 0.45
getDescriptionMethod · 0.45

Tested by

no test coverage detected