25 #ifndef TCLAP_CMD_LINE_INTERFACE_H 26 #define TCLAP_CMD_LINE_INTERFACE_H 92 virtual void xorAdd(
const std::vector<Arg *> &xors) = 0;
99 virtual void parse(
int argc,
const char *
const *argv) = 0;
106 void parse(std::vector<std::string> &args);
127 virtual std::list<Arg *>
getArgList()
const = 0;
149 virtual void reset() = 0;
166 #endif // TCLAP_CMD_LINE_INTERFACE_H virtual void xorAdd(Arg &a, Arg &b)=0
virtual void beginIgnoring()=0
Begin ignoring arguments since the "--" argument was specified.
A virtual base class that defines the essential data for all arguments.
virtual ~CmdLineInterface()
Destructor.
virtual void reset()=0
Resets the instance as if it had just been constructed so that the instance can be reused...
virtual ArgContainer & add(Arg &a)=0
Adds an argument.
virtual std::string getMessage() const =0
Returns the message string.
virtual void addToArgList(Arg *a)=0
Interface that allows adding an Arg to a "container".
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 std::list< ArgGroup * > getArgGroups()=0
Returns the list of ArgGroups.
virtual bool ignoreRest()=0
Whether to ignore the rest.
virtual bool hasHelpAndVersion() const =0
Indicates whether or not the help and version switches were created automatically.
virtual std::list< Arg * > getArgList() const =0
virtual std::string getProgramName() const =0
Returns the program name string.
virtual char getDelimiter() const =0
Returns the delimiter string.
ArgGroup is the base class for implementing groups of arguments that are mutually exclusive (it repla...
virtual std::string getVersion() const =0
Returns the version string.
The interface that any output object must implement.