#include <CmdLineInterface.h>
Public Member Functions | |
virtual void | add (Arg &a)=0 |
virtual void | add (Arg *a)=0 |
virtual std::list< Arg * > & | getArgList ()=0 |
virtual char | getDelimiter ()=0 |
virtual std::string & | getMessage ()=0 |
virtual CmdLineOutput * | getOutput ()=0 |
virtual std::string & | getProgramName ()=0 |
virtual std::string & | getVersion ()=0 |
virtual XorHandler & | getXorHandler ()=0 |
virtual bool | hasHelpAndVersion ()=0 |
virtual void | parse (int argc, const char *const *argv)=0 |
void | parse (std::vector< std::string > &args) |
virtual void | reset ()=0 |
virtual void | setOutput (CmdLineOutput *co)=0 |
virtual void | xorAdd (Arg &a, Arg &b)=0 |
virtual void | xorAdd (std::vector< Arg * > &xors)=0 |
virtual | ~CmdLineInterface () |
The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes.
Definition at line 43 of file CmdLineInterface.h.
|
inlinevirtual |
Destructor
Definition at line 50 of file CmdLineInterface.h.
Adds an argument to the list of arguments to be parsed.
a | - Argument to be added. |
Implemented in TCLAP::CmdLine.
An alternative add. Functionally identical.
a | - Argument to be added. |
Implemented in TCLAP::CmdLine.
|
pure virtual |
Returns the argList.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Returns the delimiter string.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Returns the message string.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Returns the CmdLineOutput object.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Returns the program name string.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Returns the version string.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Returns the XorHandler.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Indicates whether or not the help and version switches were created automatically.
Implemented in TCLAP::CmdLine.
|
pure virtual |
Parses the command line.
argc | - Number of arguments. |
argv | - Array of arguments. |
Implemented in TCLAP::CmdLine.
void TCLAP::CmdLineInterface::parse | ( | std::vector< std::string > & | args | ) |
Parses the command line.
args | - A vector of strings representing the args. args[0] is still the program name. |
|
pure virtual |
Resets the instance as if it had just been constructed so that the instance can be reused.
Implemented in TCLAP::CmdLine.
|
pure virtual |
co | - CmdLineOutput object that we want to use instead. |
Implemented in TCLAP::CmdLine.
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. |
Implemented in TCLAP::CmdLine.
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. |
Implemented in TCLAP::CmdLine.