|
ldas-tools-al 2.6.7
|
Maintains an ordered container of unparsed command line options. More...
#include <CommandLineOptions.hh>


Classes | |
| class | Option |
| class | OptionSet |
| struct | ValidateBool |
| struct | Validator |
Public Types | |
| enum | { OPT_END_OF_OPTIONS = -1 } |
| enum | { OPT_END_OF_OPTIONS = -1 } |
| typedef std::string | option_type |
| typedef std::ostream | ostream |
| typedef int | argc_type |
| typedef const char ** | argv_type |
| typedef std::string | option_type |
| typedef std::ostream | ostream |
| typedef int | argc_type |
| typedef const char ** | argv_type |
Public Member Functions | |
| CommandLineOptions (argc_type ArgC, argv_type ArgV) | |
| Constructor. | |
| CommandLineOptions (argc_type ArgC, char **ArgV) | |
| Constructor. | |
| template<typename ARGS> | |
| CommandLineOptions (const ARGS &Args) | |
| Constructor. | |
| int | Parse (const OptionSet &Options, std::string &ArgumentName, std::string &ArgumentValue) |
| const option_type | Pop () |
| Obtain the next option from the container. | |
| const option_type | ProgramName () const |
| Return the program name associated with this application. | |
| CommandLineOptions (argc_type ArgC, argv_type ArgV) | |
| Constructor. | |
| CommandLineOptions (argc_type ArgC, char **ArgV) | |
| Constructor. | |
| template<typename ARGS> | |
| CommandLineOptions (const ARGS &Args) | |
| Constructor. | |
| int | Parse (const OptionSet &Options, std::string &ArgumentName, std::string &ArgumentValue) |
| const option_type | Pop () |
| Obtain the next option from the container. | |
| const option_type | ProgramName () const |
| Return the program name associated with this application. | |
Static Public Member Functions | |
| static bool | InterpretBoolean (const std::string &Value) |
| static bool | InterpretBoolean (const std::string &Value) |
Private Types | |
| typedef std::list< option_type > | option_container_type |
| typedef std::list< option_type > | option_container_type |
Private Attributes | |
| const option_type | m_program_name |
| The program name associated with this application. | |
Maintains an ordered container of unparsed command line options.
| typedef const char** LDASTools::AL::CommandLineOptions::argv_type |
| typedef const char** LDASTools::AL::CommandLineOptions::argv_type |
|
private |
|
private |
| typedef std::string LDASTools::AL::CommandLineOptions::option_type |
| typedef std::string LDASTools::AL::CommandLineOptions::option_type |
| typedef std::ostream LDASTools::AL::CommandLineOptions::ostream |
| typedef std::ostream LDASTools::AL::CommandLineOptions::ostream |
Constructor.
| [in] | ArgC | Number of arguments being passed. |
| [in] | ArgV | Array of parameters |
| LDASTools::AL::CommandLineOptions::CommandLineOptions | ( | argc_type | ArgC, |
| char ** | ArgV ) |
Constructor.
| [in] | ArgC | Number of arguments being passed. |
| [in] | ArgV | Array of parameters |
|
inline |
Constructor.
| [in] | Args | Container of arguments |
Constructor.
| [in] | ArgC | Number of arguments being passed. |
| [in] | ArgV | Array of parameters |
| LDASTools::AL::CommandLineOptions::CommandLineOptions | ( | argc_type | ArgC, |
| char ** | ArgV ) |
Constructor.
| [in] | ArgC | Number of arguments being passed. |
| [in] | ArgV | Array of parameters |
|
inline |
Constructor.
| [in] | Args | Container of arguments |
|
static |
|
static |
| int LDASTools::AL::CommandLineOptions::Parse | ( | const OptionSet & | Options, |
| std::string & | ArgumentName, | ||
| std::string & | ArgumentValue ) |
| int LDASTools::AL::CommandLineOptions::Parse | ( | const OptionSet & | Options, |
| std::string & | ArgumentName, | ||
| std::string & | ArgumentValue ) |
|
inline |
Obtain the next option from the container.
This does reduce the size by one.
| const option_type LDASTools::AL::CommandLineOptions::Pop | ( | ) |
Obtain the next option from the container.
This does reduce the size by one.
|
inline |
Return the program name associated with this application.
| const option_type LDASTools::AL::CommandLineOptions::ProgramName | ( | ) | const |
Return the program name associated with this application.
|
private |
The program name associated with this application.