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

◆ bool_arg()

bool tfxx::cmdline::Commandline::bool_arg ( const int &  iopt) const
inline

return argument of option # iopt as bool value

Examples:
tests/commandlinetest.cc.

Definition at line 231 of file commandline.h.

References check_index(), and Mresult.

Referenced by main().

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