![]() |
VR-Link API Documentation for DIS
|
The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes. More...
Inheritance diagram for DtCmdLine::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. | |
The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes.
|
inlinevirtual |
Destructor.
|
pure virtual |
Adds an argument to the list of arguments to be parsed.
| a | - Argument to be added. |
Implemented in DtCmdLine::CmdLine.
Referenced by DtCmdLine::MultiArg< T >::MultiArg(), DtCmdLine::SwitchArg::SwitchArg(), DtCmdLine::UnlabeledMultiArg< T >::UnlabeledMultiArg(), and DtCmdLine::UnlabeledValueArg< T >::UnlabeledValueArg().
|
pure virtual |
An alternative add.
Functionally identical.
| a | - Argument to be added. |
Implemented in DtCmdLine::CmdLine.
|
pure virtual |
Returns the argList.
Implemented in DtCmdLine::CmdLine.
Referenced by DtCmdLine::StdOutput::_longUsage(), DtCmdLine::StdOutput::_shortUsage(), and DtCmdLine::DocBookOutput::usage().
|
pure virtual |
Returns the delimiter string.
Implemented in DtCmdLine::CmdLine.
|
pure virtual |
Returns the message string.
Implemented in DtCmdLine::CmdLine.
Referenced by DtCmdLine::StdOutput::_longUsage().
|
pure virtual |
Returns the CmdLineOutput object.
Implemented in DtCmdLine::CmdLine.
|
pure virtual |
Returns the program name string.
Implemented in DtCmdLine::CmdLine.
Referenced by DtCmdLine::StdOutput::_shortUsage(), DtCmdLine::StdOutput::failure(), DtCmdLine::DocBookOutput::usage(), and DtCmdLine::StdOutput::version().
|
pure virtual |
Returns the version string.
Implemented in DtCmdLine::CmdLine.
Referenced by DtCmdLine::DocBookOutput::version(), and DtCmdLine::StdOutput::version().
|
pure virtual |
Returns the XorHandler.
Implemented in DtCmdLine::CmdLine.
Referenced by DtCmdLine::StdOutput::_longUsage(), DtCmdLine::StdOutput::_shortUsage(), and DtCmdLine::DocBookOutput::usage().
|
pure virtual |
Parses the command line.
| argc | - Number of arguments. |
| argv | - Array of arguments. |
Implemented in DtCmdLine::CmdLine.
|
pure virtual |
| co | - CmdLineOutput object that we want to use instead. |
Implemented in DtCmdLine::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 DtCmdLine::CmdLine.
|
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 DtCmdLine::CmdLine.