MCPcopy Create free account
hub / github.com/audeering/opensmile / getBoolean

Method getBoolean

src/core/commandlineParser.cpp:90–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool cCommandlineParser::getBoolean(const char *name) const
91{
92 const sCmdlineOpt *opt = findOpt(name);
93 if (opt == NULL) {
94 COMP_ERR("boolean commandline argument '%s' not found!", name);
95 }
96 if (opt->type != eCmdlineOptType::Boolean) {
97 COMP_ERR("requested commandline argument '%s' is not of type boolean!", name);
98 }
99 return opt->getBoolean();
100}
101
102int cCommandlineParser::getInt(const char *name) const
103{

Callers 3

parseMethod · 0.45
showUsageMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected