15 #ifndef TCLAP_SWITCH_ARG_H 16 #define TCLAP_SWITCH_ARG_H 55 const std::string& name,
56 const std::string& desc,
75 const std::string& name,
76 const std::string& desc,
90 virtual bool processArg(
int* i, std::vector<std::string>& args);
109 const std::string& name,
110 const std::string& desc,
113 :
Arg(flag, name, desc, false, false, v),
118 const std::string& name,
119 const std::string& desc,
123 :
Arg(flag, name, desc, false, false, v),
144 for (
unsigned int i = 1; i < combinedSwitches.length(); i++ )
145 if ( combinedSwitches[i] ==
_flag[0] )
virtual bool argMatches(const std::string &s) const
SwitchArg(const std::string &flag, const std::string &name, const std::string &desc, bool def=false, Visitor *v=NULL)
TCLAP command line argument parser classes.
TClap class indirectly used to define the interface for visitors.
Managing interface for The base class that manages the command line definition and passes along the p...
Virtual parent for all the different argument classes.
static std::string nameStartString()
virtual std::string toString() const
static std::string flagStartString()
virtual bool processArg(int *i, std::vector< std::string > &args)
bool combinedSwitchesMatch(std::string &combined)
virtual void add(Arg &a)=0
Defines the exception when an argument is improperly specified.
void _checkWithVisitor() const