25#ifndef TCLAP_CMD_LINE_INTERFACE_H
26#define TCLAP_CMD_LINE_INTERFACE_H
98 virtual void xorAdd(
const std::vector<Arg *> &xors) = 0;
105 virtual void parse(
int argc,
const char *
const *argv) = 0;
112 void parse(std::vector<std::string> &args);
149 const std::string &fallback)
const = 0;
Interface that allows adding an Arg to a "container".
ArgGroup is the base class for implementing groups of arguments that are mutually exclusive (it repla...
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...
void parse(std::vector< std::string > &args)
Parses the command line.
virtual bool ignoreRest()=0
Whether to ignore the rest.
virtual std::string getVersion() const =0
Returns the version string.
virtual ArgContainer & add(Arg *a)=0
Adds an argument.
virtual void beginIgnoring()=0
Begin ignoring arguments since the "--" argument was specified.
virtual bool attachGroup(ArgGroup &)
virtual void parse(int argc, const char *const *argv)=0
Parses the command line.
virtual void xorAdd(Arg &a, Arg &b)=0
virtual void reset()=0
Resets the instance as if it had just been constructed so that the instance can be reused.
virtual ~CmdLineInterface()
Destructor.
virtual std::string getMessage() const =0
Returns the message string.
virtual bool hasHelpAndVersion() const =0
Indicates whether or not the help and version switches were created automatically.
virtual std::string translateMessage(const std::string &messageId, const std::string &fallback) const =0
Translates a built-in message using the current translator.
virtual std::string getProgramName() const =0
Returns the program name string.
virtual ArgContainer & add(Arg &a)=0
Adds an argument.
virtual void setOutput(CmdLineOutput *co)=0
virtual void xorAdd(const std::vector< Arg * > &xors)=0
virtual ArgContainer & add(ArgGroup &args)=0
Adds an argument group to the list of arguments to be parsed.
virtual std::list< ArgGroup * > getArgGroups()=0
Returns the list of ArgGroups.
virtual char getDelimiter() const =0
Returns the delimiter string.
virtual std::list< Arg * > getArgList() const =0
virtual void addToArgList(Arg *a)=0
The interface that any output object must implement.