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

◆ double_arg()

double tfxx::cmdline::Commandline::double_arg ( const int &  iopt) const
inline

return argument of option # iopt as double value

Examples:
tests/commandlinetest.cc.

Definition at line 225 of file commandline.h.

References check_index(), and Mresult.

Referenced by main().

226  { check_index(iopt); return(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: