Definition at line 54 of file progargs.h.
typedef std::vector<std::string> OSB_APP::ArgsBase::Args |
virtual OSB_APP::ArgsBase::~ArgsBase | ( | ) | [virtual] |
Empty virtual destructor.
const Args& OSB_APP::ArgsBase::args | ( | ) | const |
Read access to arguments.
The return value is meaningful only after evalArgs() was called.
bool OSB_APP::ArgsBase::convert | ( | long * | dest, | |
const char * | src | |||
) |
Utility: convert option to long.
dest | Value to populate. | |
src | Option argument to convert. |
int OSB_APP::ArgsBase::evalArgs | ( | int | argc, | |
char *const * | argv | |||
) |
Evaluate command line parameters.
argc | Number of parameters. | |
argv | Parameter array. |
Program arguments, i.e., non-option parameters are stored in args_.
virtual int OSB_APP::ArgsBase::evalOpt | ( | int | opt, | |
char * | optarg, | |||
int | optopt | |||
) | [pure virtual] |
Evaluate an encountered option.
opt | Option character that was found. | |
optarg | Points to the argument of an option. | |
optopt | Unrecognized option character if opt is '?'. |
virtual std::string OSB_APP::ArgsBase::optstring | ( | ) | [pure virtual] |
String with valid option.
See man 3 getopt for a description.
Args OSB_APP::ArgsBase::args_ [protected] |
List of arguments (non-option command line parameters).
It is populated in evalArgs() after all options have been evaluated.
Definition at line 125 of file progargs.h.