24 #ifndef TCLAP_SWITCH_ARG_H 25 #define TCLAP_SWITCH_ARG_H 117 virtual void reset();
140 :
Arg(flag, name, desc, false, false, v),
151 :
Arg(flag, name, desc, false, false, v),
162 for (
unsigned int i = 1;
i < combinedSwitches.length();
i++ )
172 if ( combinedSwitches.length() > 0 &&
182 if ( combinedSwitches.find_first_of(
Arg::delimiter() ) != std::string::npos )
187 for (
unsigned int i = 1;
i < combinedSwitches.length();
i++ )
188 if (
_flag.length() > 0 &&
189 combinedSwitches[
i] ==
_flag[0] &&
208 "Mutually exclusive argument already set!",
toString()));
bool combinedSwitchesMatch(std::string &combined)
GLuint const GLchar * name
GLsizei const GLchar *const * string
bool lastCombined(std::string &combined)
void _checkWithVisitor() const
virtual bool processArg(int *i, std::vector< std::string > &args)
static const std::string nameStartString()
virtual void add(Arg &a)=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)
virtual std::string toString() const
static const std::string flagStartString()