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

Method addDouble

src/core/commandlineParser.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void cCommandlineParser::addDouble(const char *name, char abbr, const char *description, double dflt, bool argMandatory, bool isMandatory)
50{
51 sCmdlineOpt &opt = addOpt(name, abbr, description, eCmdlineOptType::Double, argMandatory, isMandatory);
52 opt.setDouble(dflt);
53 opt.setInt((int)dflt); // we also set it as int in case someone tries to access the value as such
54}
55
56void cCommandlineParser::addStr(const char *name, char abbr, const char *description, const char *dflt, bool argMandatory, bool isMandatory)
57{

Callers 1

getInstanceMethod · 0.80

Calls 2

setDoubleMethod · 0.45
setIntMethod · 0.45

Tested by

no test coverage detected