#include <CmdLineInterface.h>
Inheritance diagram for TCLAP::CmdLineInterface:

Public Member Functions | ||||
| virtual | ~CmdLineInterface () | |||
| Destructor. | ||||
| virtual void | add (Arg &a)=0 | |||
| Adds an argument to the list of arguments to be parsed. | ||||
| virtual void | add (Arg *a)=0 | |||
| An alternative add. | ||||
| virtual void | xorAdd (Arg &a, Arg &b)=0 | |||
| Add two Args that will be xor'd. | ||||
| virtual void | xorAdd (std::vector< Arg * > &xors)=0 | |||
| Add a list of Args that will be xor'd. | ||||
| virtual void | parse (int argc, char **argv)=0 | |||
| Parses the command line. | ||||
| virtual CmdLineOutput * | getOutput ()=0 | |||
| Returns the CmdLineOutput object. | ||||
| virtual void | setOutput (CmdLineOutput *co)=0 | |||
| ||||
| virtual std::string & | getVersion ()=0 | |||
| Returns the version string. | ||||
| virtual std::string & | getProgramName ()=0 | |||
| Returns the program name string. | ||||
| virtual std::list< Arg * > & | getArgList ()=0 | |||
| Returns the argList. | ||||
| virtual XorHandler & | getXorHandler ()=0 | |||
| Returns the XorHandler. | ||||
| virtual char | getDelimiter ()=0 | |||
| Returns the delimiter string. | ||||
| virtual std::string & | getMessage ()=0 | |||
| Returns the message string. | ||||
| virtual bool | hasHelpAndVersion ()=0 | |||
| Indicates whether or not the help and version switches were created automatically. | ||||
Definition at line 43 of file CmdLineInterface.h.
| virtual TCLAP::CmdLineInterface::~CmdLineInterface | ( | ) | [inline, virtual] |
| virtual void TCLAP::CmdLineInterface::add | ( | Arg & | a | ) | [pure virtual] |
Adds an argument to the list of arguments to be parsed.
| a | - Argument to be added. |
Implemented in TCLAP::CmdLine.
Referenced by TCLAP::MultiArg< T >::MultiArg(), TCLAP::MultiSwitchArg::MultiSwitchArg(), TCLAP::SwitchArg::SwitchArg(), TCLAP::UnlabeledMultiArg< T >::UnlabeledMultiArg(), TCLAP::UnlabeledValueArg< T >::UnlabeledValueArg(), and TCLAP::ValueArg< T >::ValueArg().
| virtual void TCLAP::CmdLineInterface::add | ( | Arg * | a | ) | [pure virtual] |
An alternative add.
Functionally identical.
| a | - Argument to be added. |
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.
| virtual void TCLAP::CmdLineInterface::xorAdd | ( | std::vector< Arg * > & | xors | ) | [pure virtual] |
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.
| virtual void TCLAP::CmdLineInterface::parse | ( | int | argc, | |
| char ** | argv | |||
| ) | [pure virtual] |
Parses the command line.
| argc | - Number of arguments. | |
| argv | - Array of arguments. |
Implemented in TCLAP::CmdLine.
| virtual CmdLineOutput* TCLAP::CmdLineInterface::getOutput | ( | ) | [pure virtual] |
| virtual void TCLAP::CmdLineInterface::setOutput | ( | CmdLineOutput * | co | ) | [pure virtual] |
| virtual std::string& TCLAP::CmdLineInterface::getVersion | ( | ) | [pure virtual] |
Returns the version string.
Implemented in TCLAP::CmdLine.
Referenced by TCLAP::DocBookOutput::usage(), TCLAP::StdOutput::version(), and TCLAP::DocBookOutput::version().
| virtual std::string& TCLAP::CmdLineInterface::getProgramName | ( | ) | [pure virtual] |
Returns the program name string.
Implemented in TCLAP::CmdLine.
Referenced by TCLAP::StdOutput::_shortUsage(), TCLAP::StdOutput::failure(), TCLAP::DocBookOutput::usage(), and TCLAP::StdOutput::version().
| virtual std::list<Arg*>& TCLAP::CmdLineInterface::getArgList | ( | ) | [pure virtual] |
Returns the argList.
Implemented in TCLAP::CmdLine.
Referenced by TCLAP::StdOutput::_longUsage(), TCLAP::StdOutput::_shortUsage(), and TCLAP::DocBookOutput::usage().
| virtual XorHandler& TCLAP::CmdLineInterface::getXorHandler | ( | ) | [pure virtual] |
Returns the XorHandler.
Implemented in TCLAP::CmdLine.
Referenced by TCLAP::StdOutput::_longUsage(), TCLAP::StdOutput::_shortUsage(), and TCLAP::DocBookOutput::usage().
| virtual char TCLAP::CmdLineInterface::getDelimiter | ( | ) | [pure virtual] |
| virtual std::string& TCLAP::CmdLineInterface::getMessage | ( | ) | [pure virtual] |
Returns the message string.
Implemented in TCLAP::CmdLine.
Referenced by TCLAP::StdOutput::_longUsage(), and TCLAP::DocBookOutput::usage().
| virtual bool TCLAP::CmdLineInterface::hasHelpAndVersion | ( | ) | [pure virtual] |
Indicates whether or not the help and version switches were created automatically.
Implemented in TCLAP::CmdLine.
Referenced by TCLAP::StdOutput::failure().
1.5.1