#include <GetOptions.h>
Public Methods | |
| GetOptions (void) | |
| GetOptions (const std::string &p_command_line) | |
| void | setCommandLine (const std::string &p_command) |
| void | setSeparator (const std::string &p_sep) |
| std::string | getCommandLine (void) const |
| std::string | getSeparator (void) const |
| void | addOption (const std::string &p_option, const bool p_has_argument=false, const bool p_is_optional=true) |
| bool | hasOption (const std::string &p_option) const |
| bool | parse (void) |
| bool | hasArgument (const std::string &p_option) const |
| bool | hasArgument (const std::string &p_option, std::vector< std::string > &p_arguments) const |
|
|
Constructor. |
|
|
Constructor.
|
|
||||||||||||||||
|
Define an additional option that is seeked by the parser.
|
|
|
Return the command line that is being parsed. |
|
|
Return the character used to identify a new option. Default '-'. |
|
||||||||||||
|
Return 'true' if the option name 'p_option' is found and as at least one argument.
|
|
|
Return 'true' if the option name 'p_option' is found and has at least one argument. |
|
|
Return 'true' if the option p_option is already part of the option list to be parsed. |
|
|
Parse the pre-set text (command line). |
|
|
Assign the text to be parsed. |
|
|
Set the character used to identify a new option. Default '-'. |
1.2.18