25 #ifndef TCLAP_ARGUMENT_H 26 #define TCLAP_ARGUMENT_H 41 #if defined(HAVE_SSTREAM) 44 #elif defined(HAVE_STRSTREAM) 48 #error "Need a stringstream (sstream or strstream) to compile!" 86 static char&
delimiterRef() {
static char delim =
' ';
return delim; }
195 virtual void addToList( std::list<Arg*>& argList )
const;
223 #ifndef TCLAP_FLAGSTARTCHAR 224 #define TCLAP_FLAGSTARTCHAR '-' 233 #ifndef TCLAP_FLAGSTARTSTRING 234 #define TCLAP_FLAGSTARTSTRING "-" 242 #ifndef TCLAP_NAMESTARTSTRING 243 #define TCLAP_NAMESTARTSTRING "--" 390 virtual void reset();
414 template<
typename T>
void 417 static_cast<void>(vl);
421 while ( is.good() ) {
422 if ( is.peek() != EOF )
423 #ifdef TCLAP_SETBASE_ZERO
424 is >> std::setbase(0) >> destVal;
436 "from string '" + strVal +
"'"));
439 if ( valuesRead > 1 )
441 "string '" + strVal +
"'"));
451 template<
typename T>
void 454 static_cast<void>(sl);
480 if (
_flag.length() > 1 )
482 "Argument flag can only be one character long",
toString() ) );
495 (
_name.find(
" ", 0 ) != std::string::npos ) )
623 for (
int i = 0;
static_cast<unsigned int>(
i) < flag.length();
i++ )
632 value = flag.substr(stop+1);
633 flag = flag.substr(0,stop);
643 for (
int i = 1;
static_cast<unsigned int>(
i) < s.length();
i++ )
666 argList.push_front( const_cast<Arg*>(
this) );
std::istringstream istringstream
GLuint const GLchar * name
virtual void trimFlag(std::string &flag, std::string &value) const
virtual std::string longID(const std::string &valueId="val") const
bool isIgnoreable() const
bool _hasBlanks(const std::string &s) const
std::string getDescription() const
void SetString(T &dst, const std::string &src)
void setRequireLabel(const std::string &s)
static char flagStartChar()
virtual void addToList(std::list< Arg * > &argList) const
GLsizei const GLchar *const * string
void _checkWithVisitor() const
static char & delimiterRef()
static const textual_icon stop
const std::string & getName() const
bool isValueRequired() const
GLboolean GLboolean GLboolean GLboolean a
std::list< Visitor * >::iterator VisitorListIterator
#define TCLAP_FLAGSTARTCHAR
const std::string & getFlag() const
Arg & operator=(const Arg &rhs)
static const std::string ignoreNameString()
static const std::string nameStartString()
#define TCLAP_NAMESTARTSTRING
virtual std::string shortID(const std::string &valueId="val") const
virtual bool operator==(const Arg &a) const
std::list< Arg * >::iterator ArgListIterator
virtual bool acceptsMultipleValues()
std::vector< Arg * >::iterator ArgVectorIterator
virtual bool processArg(int *i, std::vector< std::string > &args)=0
static void beginIgnoring()
void ExtractValue(T &destVal, const std::string &strVal, ValueLike vl)
virtual bool argMatches(const std::string &s) const
bool _acceptsMultipleValues
static bool & ignoreRestRef()
virtual std::string toString() const
#define TCLAP_FLAGSTARTSTRING
std::string _requireLabel
static const std::string flagStartString()
static void setDelimiter(char c)
virtual bool isRequired() const