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

Function printOutputFormats

src_cpp/main.cpp:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void printOutputFormats()
74{
75 vector<string> formats = OutputFormat::availableFormats();
76 printf("Available output formats are:\n");
77 for (int i=0;i<formats.size();i++)
78 {
79 const OutputFormat* f = OutputFormat::get(formats[i]);
80 printf("[%s] %s\n",formats[i].c_str(),f->getDescription().c_str());
81 printf(" Parameters:\n");
82 ParameterDescriptorList pList = f->getParameters();
83 for (int p=0;p<pList.size();p++) {
84 printf(" - %s: %s (default=%s)\n", pList[p].m_identifier.c_str(),
85 pList[p].m_description.c_str(), pList[p].m_defaultValue.c_str());
86 }
87 printf("\n");
88 }
89}
90
91struct arg_lit *h, *version, *verbose, *l;
92struct arg_str *d, *libs, *outdir, *format, *formatparams;

Callers 1

mainFunction · 0.85

Calls 3

getParametersMethod · 0.80
sizeMethod · 0.45
getDescriptionMethod · 0.45

Tested by

no test coverage detected