28 using namespace genie;
30 int main(
int argc,
char **argv)
41 <<
"Command line argument following -d : "
44 <<
"Command line argument following -d (as double): "
50 <<
"Command line argument following -l : "
53 <<
"Command line argument following -l (as long int): "
59 <<
"Command line argument following -v : "
62 vector<string>::const_iterator iter = tokens.begin();
63 for( ; iter != tokens.end(); ++iter) {
65 <<
"Token: " << *iter;
69 if(parser.
OptionExists(
"with-long-command-line-option")) {
71 <<
"Command line argument following --with-long-command-line-option : "
72 << parser.
Arg(
"with-long-command-line-option");
double ArgAsDouble(char opt)
vector< string > ArgAsStringTokens(char opt, string delimeter)
int main(int argc, char **argv)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Command line argument parser.
bool OptionExists(char opt)
was option set?
char * Arg(char opt)
return argument following -`opt'