#include <CmdLine.h>

Public Member Functions | |
| void | add (Arg &a) |
| void | add (Arg *a) |
| CmdLine (const std::string &message, const char delimiter= ' ', const std::string &version="none", bool helpAndVersion=true) | |
| std::list< Arg * > & | getArgList () |
| char | getDelimiter () |
| bool | getExceptionHandling () const |
| std::string & | getMessage () |
| CmdLineOutput * | getOutput () |
| std::string & | getProgramName () |
| std::string & | getVersion () |
| XorHandler & | getXorHandler () |
| bool | hasHelpAndVersion () |
| void | parse (int argc, const char *const *argv) |
| void | parse (std::vector< std::string > &args) |
| void | reset () |
| void | setExceptionHandling (const bool state) |
| void | setOutput (CmdLineOutput *co) |
| void | xorAdd (Arg &a, Arg &b) |
| void | xorAdd (std::vector< Arg * > &xors) |
| virtual | ~CmdLine () |
Public Member Functions inherited from TCLAP::CmdLineInterface | |
| void | parse (std::vector< std::string > &args) |
| virtual | ~CmdLineInterface () |
Protected Member Functions | |
| bool | _emptyCombined (const std::string &s) |
| void | deleteOnExit (Arg *ptr) |
| void | deleteOnExit (Visitor *ptr) |
| void | missingArgsException () |
Protected Attributes | |
| std::list< Arg * > | _argDeleteOnExitList |
| std::list< Arg * > | _argList |
| char | _delimiter |
| bool | _handleExceptions |
| std::string | _message |
| int | _numRequired |
| CmdLineOutput * | _output |
| std::string | _progName |
| std::string | _version |
| std::list< Visitor * > | _visitorDeleteOnExitList |
| XorHandler | _xorHandler |
Private Member Functions | |
| void | _constructor () |
| CmdLine (const CmdLine &rhs) | |
| CmdLine & | operator= (const CmdLine &rhs) |
Private Attributes | |
| bool | _helpAndVersion |
| bool | _userSetOutput |
The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes.
|
private |
Prevent accidental copying.
|
inline |
Command line constructor. Defines how the arguments will be parsed.
| message | - The message to be used in the usage output. |
| delimiter | - The character that is used to separate the argument flag/name from the value. Defaults to ' ' (space). |
| version | - The version number to be used in the –version switch. |
| helpAndVersion | - Whether or not to create the Help and Version switches. Defaults to true. |
|
inlinevirtual |
|
inlineprivate |
|
inlineprotected |
Checks whether a name/flag string matches entirely matches the Arg::blankChar. Used when multiple switches are combined into a single argument.
| s | - The message to be used in the usage. |
Adds an argument to the list of arguments to be parsed.
| a | - Argument to be added. |
Implements TCLAP::CmdLineInterface.
An alternative add. Functionally identical.
| a | - Argument to be added. |
Implements TCLAP::CmdLineInterface.
|
inlinevirtual |
|
inlinevirtual |
Returns the delimiter string.
Implements TCLAP::CmdLineInterface.
|
inline |
|
inlinevirtual |
Returns the message string.
Implements TCLAP::CmdLineInterface.
|
inlinevirtual |
Returns the CmdLineOutput object.
Implements TCLAP::CmdLineInterface.
|
inlinevirtual |
Returns the program name string.
Implements TCLAP::CmdLineInterface.
|
inlinevirtual |
Returns the version string.
Implements TCLAP::CmdLineInterface.
|
inlinevirtual |
Returns the XorHandler.
Implements TCLAP::CmdLineInterface.
|
inlinevirtual |
Indicates whether or not the help and version switches were created automatically.
Implements TCLAP::CmdLineInterface.
|
inlineprotected |
|
inlinevirtual |
Parses the command line.
| argc | - Number of arguments. |
| argv | - Array of arguments. |
Implements TCLAP::CmdLineInterface.
|
inline |
Allows the CmdLine object to be reused.
Implements TCLAP::CmdLineInterface.
|
inline |
|
inlinevirtual |
| co | - CmdLineOutput object that we want to use instead. |
Implements TCLAP::CmdLineInterface.
Add two Args that will be xor'd. If this method is used, add does not need to be called.
| a | - Argument to be added and xor'd. |
| b | - Argument to be added and xor'd. |
Implements TCLAP::CmdLineInterface.
Add a list of Args that will be xor'd. If this method is used, add does not need to be called.
| xors | - List of Args to be added and xor'd. |
Implements TCLAP::CmdLineInterface.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |