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

Method addInt

src/core/commandlineParser.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void cCommandlineParser::addInt(const char *name, char abbr, const char *description, int dflt, bool argMandatory, bool isMandatory)
43{
44 sCmdlineOpt &opt = addOpt(name, abbr, description, eCmdlineOptType::Int, argMandatory, isMandatory);
45 opt.setInt(dflt);
46 opt.setDouble(dflt); // we also set it as double in case someone tries to access the value as such
47}
48
49void cCommandlineParser::addDouble(const char *name, char abbr, const char *description, double dflt, bool argMandatory, bool isMandatory)
50{

Callers 1

mainFunction · 0.80

Calls 2

setIntMethod · 0.45
setDoubleMethod · 0.45

Tested by

no test coverage detected