26 #ifndef TCLAP_COMMANDLINE_INTERFACE_H 27 #define TCLAP_COMMANDLINE_INTERFACE_H 59 virtual void add(
Arg& a )=0;
65 virtual void add(
Arg* a )=0;
81 virtual void xorAdd(
const std::vector<Arg*>& xors )=0;
88 virtual void parse(
int argc,
const char *
const * argv)=0;
95 void parse(std::vector<std::string>& args);
147 virtual void reset()=0;
virtual bool hasHelpAndVersion()=0
Indicates whether or not the help and version switches were created automatically.
virtual void xorAdd(Arg &a, Arg &b)=0
Add two Args that will be xor'd.
A virtual base class that defines the essential data for all arguments.
virtual std::string & getProgramName()=0
Returns the program name string.
virtual std::list< Arg * > & getArgList()=0
Returns the argList.
virtual ~CmdLineInterface()
Destructor.
virtual char getDelimiter()=0
Returns the delimiter string.
virtual void reset()=0
Resets the instance as if it had just been constructed so that the instance can be reused...
virtual CmdLineOutput * getOutput()=0
Returns the CmdLineOutput object.
virtual std::string & getVersion()=0
Returns the version string.
virtual XorHandler & getXorHandler()=0
Returns the XorHandler.
virtual void setOutput(CmdLineOutput *co)=0
virtual void parse(int argc, const char *const *argv)=0
Parses the command line.
The base class that manages the command line definition and passes along the parsing to the appropria...
virtual void add(Arg &a)=0
Adds an argument to the list of arguments to be parsed.
virtual std::string & getMessage()=0
Returns the message string.
This class handles lists of Arg's that are to be XOR'd on the command line.
The interface that any output object must implement.