Go to the documentation of this file.
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);
472 _requireLabel(
"required"),
473 _valueRequired(valreq),
478 _acceptsMultipleValues(false)
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++ )
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) );
static char & delimiterRef()
void _checkWithVisitor() const
bool _hasBlanks(const std::string &s) const
const std::string & getName() const
std::list< Arg * >::iterator ArgListIterator
virtual bool operator==(const Arg &a) const
GLsizei const GLchar *const * string
bool isIgnoreable() const
static const std::string flagStartString()
virtual std::string toString() const
virtual std::string shortID(const std::string &valueId="val") const
static bool & ignoreRestRef()
void SetString(T &dst, const std::string &src)
void ExtractValue(T &destVal, const std::string &strVal, ValueLike vl)
virtual bool acceptsMultipleValues()
std::string _requireLabel
virtual void trimFlag(std::string &flag, std::string &value) const
std::string getDescription() const
#define TCLAP_FLAGSTARTCHAR
std::istringstream istringstream
bool _acceptsMultipleValues
static const textual_icon stop
static void setDelimiter(char c)
virtual std::string longID(const std::string &valueId="val") const
std::vector< Arg * >::iterator ArgVectorIterator
const std::string & getFlag() const
GLboolean GLboolean GLboolean GLboolean a
virtual void addToList(std::list< Arg * > &argList) const
GLuint const GLchar * name
static void beginIgnoring()
std::list< Visitor * >::iterator VisitorListIterator
Arg & operator=(const Arg &rhs)
#define TCLAP_NAMESTARTSTRING
static char flagStartChar()
static const std::string nameStartString()
virtual bool argMatches(const std::string &s) const
void setRequireLabel(const std::string &s)
bool isValueRequired() const
virtual bool processArg(int *i, std::vector< std::string > &args)=0
static const std::string ignoreNameString()
#define TCLAP_FLAGSTARTSTRING
virtual bool isRequired() const
librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:00