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