| 112 | } |
| 113 | |
| 114 | double cCommandlineParser::getDouble(const char *name) const |
| 115 | { |
| 116 | const sCmdlineOpt *opt = findOpt(name); |
| 117 | if (opt == NULL) { |
| 118 | COMP_ERR("double commandline argument '%s' not found!", name); |
| 119 | } |
| 120 | if (opt->type != eCmdlineOptType::Double) { |
| 121 | COMP_ERR("requested commandline argument '%s' is not of type double!", name); |
| 122 | } |
| 123 | return opt->getDouble(); |
| 124 | } |
| 125 | |
| 126 | const char * cCommandlineParser::getStr(const char *name) const |
| 127 | { |
no outgoing calls
no test coverage detected