#include <argumentparser.hpp>
Public Member Functions | |
ArgumentParser () | |
virtual | ~ArgumentParser () |
bool | parseArguments (int argc, char **argv) |
uint | numArguments () const |
string | argValue (const string &arg) const |
bool | boolArgValue (const string &arg) const |
bool | singleArgSet (char arg) const |
Private Attributes | |
map< string, string > | ArgsMap |
string | NoParamArgs |
Definition at line 20 of file argumentparser.hpp.
|
Default constructor Definition at line 51 of file argumentparser.cpp. |
|
Destroys the object Definition at line 60 of file argumentparser.cpp. |
|
Returns the boolean value of the argument arg. Returns an empty string if the argument was not specified. true, 1 and on are accepted as true, all other values are false. Definition at line 144 of file argumentparser.cpp. References mapIt. |
|
Returns the number of arguments parsed. Definition at line 118 of file argumentparser.cpp. |
|
Parses the arguments. Returns true if the arguments are valid and the program should continue. This function accepts the following: -a param ; // standard with parameter -a ; // no parameter -ab ; // a and b are both parameterless -ab param; // a has no param, b does Definition at line 73 of file argumentparser.cpp. |
|
Returns true if the character arg was set in any of the allowed ways. Definition at line 163 of file argumentparser.cpp. |