TF++, Miscellaneous classes and modules in C++:

◆ float_arg()

float tfxx::cmdline::Commandline::float_arg ( const int &  iopt) const
inline

return argument of option # iopt as float value

Examples:
tests/commandlinetest.cc.

Definition at line 222 of file commandline.h.

References check_index(), and Mresult.

Referenced by main().

223  { check_index(iopt); return(float(atof(Mresult[iopt].arg.c_str()))); }
Result * Mresult
Array of command line contents.
Definition: commandline.h:271
void check_index(const int &iopt) const
Check requested index before query.
Definition: commandline.h:248
Here is the call graph for this function:
Here is the caller graph for this function: