Basic command line parsing.
More...
#include <CommandLineParser.h>
|
| CommandLineParser () |
|
| ~CommandLineParser () |
|
int | parse (int argc, char **argv) const |
|
int | printArgs (ostream &o) const |
|
int | printUsage (const string &binPath) const |
|
int | setOption (const string &key, bool *value, const string &description="") |
|
int | setDoubleArgument (const string &key, double *value, const string &description="", const bool &optional=false) |
|
int | setIntArgument (const string &key, int *value, const string &description="", const bool &optional=false) |
|
int | setStringArgument (const string &key, string *value, const string &description="", const bool &optional=false) |
|
| Debug () |
|
virtual | ~Debug () |
|
virtual const int | dMsg (ostream &stream, string msg, const int &debugLevel=infoMsg) const |
|
const int | err (const string msg, const int &debugLevel=infoMsg) const |
|
const int | msg (const char *msg, const int &debugLevel=infoMsg) const |
|
virtual const int | setDebugLevel (const int &debugLevel) |
|
int | setThreadNumber (const int threadNumber) |
|
int | setWrapper (const Wrapper *wrapper) |
|
Basic command line parsing.
- Author
- Julien Tierny julie.nosp@m.n.ti.nosp@m.erny@.nosp@m.lip6.nosp@m..fr
- Date
- September 2013.
wtfit::CommandLineParser::CommandLineParser |
( |
| ) |
|
|
inline |
wtfit::CommandLineParser::~CommandLineParser |
( |
| ) |
|
|
inline |
int wtfit::CommandLineParser::parse |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| const |
|
inline |
int wtfit::CommandLineParser::printArgs |
( |
ostream & |
o | ) |
const |
|
inline |
int wtfit::CommandLineParser::printUsage |
( |
const string & |
binPath | ) |
const |
|
inline |
int wtfit::CommandLineParser::setDoubleArgument |
( |
const string & |
key, |
|
|
double * |
value, |
|
|
const string & |
description = "" , |
|
|
const bool & |
optional = false |
|
) |
| |
|
inline |
int wtfit::CommandLineParser::setIntArgument |
( |
const string & |
key, |
|
|
int * |
value, |
|
|
const string & |
description = "" , |
|
|
const bool & |
optional = false |
|
) |
| |
|
inline |
int wtfit::CommandLineParser::setOption |
( |
const string & |
key, |
|
|
bool * |
value, |
|
|
const string & |
description = "" |
|
) |
| |
|
inline |
int wtfit::CommandLineParser::setStringArgument |
( |
const string & |
key, |
|
|
string * |
value, |
|
|
const string & |
description = "" , |
|
|
const bool & |
optional = false |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: