|
| ArgumentParser (int *argc, char **argv) |
|
void | setApplicationUsage (ApplicationUsage *usage) |
|
ApplicationUsage * | getApplicationUsage () |
|
const ApplicationUsage * | getApplicationUsage () const |
|
int & | argc () |
| Return the argument count. More...
|
|
char ** | argv () |
| Return the argument array. More...
|
|
char * | operator[] (int pos) |
| Return the char* argument at the specified position. More...
|
|
const char * | operator[] (int pos) const |
| Return the const char* argument at the specified position. More...
|
|
std::string | getApplicationName () const |
| Return the application name, as specified by argv[0].
|
|
int | find (const std::string &str) const |
| Return the position of an occurrence of a string in the argument list. More...
|
|
bool | isOption (int pos) const |
| Return true if the specified parameter is an option in the form of -option or –option. More...
|
|
bool | isString (int pos) const |
| Return true if the specified parameter is a string not in the form of an option. More...
|
|
bool | isNumber (int pos) const |
| Return true if the specified parameter is a number. More...
|
|
bool | containsOptions () const |
|
void | remove (int pos, int num=1) |
| Remove one or more arguments from the argv argument list, and decrement the argc respectively. More...
|
|
bool | match (int pos, const std::string &str) const |
| Return true if the specified argument matches the given string. More...
|
|
bool | read (const std::string &str) |
| Search for an occurrence of a string in the argument list. More...
|
|
bool | read (const std::string &str, Parameter value1) |
|
bool | read (const std::string &str, Parameter value1, Parameter value2) |
|
bool | read (const std::string &str, Parameter value1, Parameter value2, Parameter value3) |
|
bool | read (const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4) |
|
bool | read (const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5) |
|
bool | read (const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5, Parameter value6) |
|
bool | read (const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5, Parameter value6, Parameter value7) |
|
bool | read (const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5, Parameter value6, Parameter value7, Parameter value8) |
|
bool | read (int pos, const std::string &str) |
| If the argument value at the specified position matches the given string, and subsequent parameters are also matched, then set the parameter values, remove the arguments from the list, and return true. More...
|
|
bool | read (int pos, const std::string &str, Parameter value1) |
|
bool | read (int pos, const std::string &str, Parameter value1, Parameter value2) |
|
bool | read (int pos, const std::string &str, Parameter value1, Parameter value2, Parameter value3) |
|
bool | read (int pos, const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4) |
|
bool | read (int pos, const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5) |
|
bool | read (int pos, const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5, Parameter value6) |
|
bool | read (int pos, const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5, Parameter value6, Parameter value7) |
|
bool | read (int pos, const std::string &str, Parameter value1, Parameter value2, Parameter value3, Parameter value4, Parameter value5, Parameter value6, Parameter value7, Parameter value8) |
|
bool | errors (ErrorSeverity severity=BENIGN) const |
| Return the error flag, true if an error has occurred when reading arguments. More...
|
|
void | reportError (const std::string &message, ErrorSeverity severity=CRITICAL) |
| Report an error message by adding to the ErrorMessageMap. More...
|
|
void | reportRemainingOptionsAsUnrecognized (ErrorSeverity severity=BENIGN) |
| For each remaining option, report it as unrecognized. More...
|
|
ErrorMessageMap & | getErrorMessageMap () |
| Return the error message, if any has occurred. More...
|
|
const ErrorMessageMap & | getErrorMessageMap () const |
| Return the error message, if any has occurred. More...
|
|
void | writeErrorMessages (std::ostream &output, ErrorSeverity sevrity=BENIGN) |
| Write error messages to the given ostream, if at or above the given severity. More...
|
|
ApplicationUsage::Type | readHelpType () |
| This convenience method handles help requests on the command line. More...
|
|