15 #ifndef TCLAP_UNLABELED_VALUE_ARGUMENT_H 16 #define TCLAP_UNLABELED_VALUE_ARGUMENT_H 72 const std::string& desc,
75 const std::string& typeDesc,
76 bool ignoreable =
false,
102 const std::string& desc,
105 const std::string& typeDesc,
107 bool ignoreable =
false,
130 const std::string& desc,
134 bool ignoreable =
false,
159 const std::string& desc,
164 bool ignoreable =
false,
175 virtual bool processArg(
int* i, std::vector<std::string>& args);
180 virtual std::string
shortID(
const std::string& val=
"val")
const;
185 virtual std::string
longID(
const std::string& val=
"val")
const;
196 virtual void addToList( std::list<Arg*>& argList )
const;
205 const std::string& desc,
208 const std::string& typeDesc,
211 :
ValueArg<T>(
"", name, desc, req, value, typeDesc, v)
221 const std::string& desc,
224 const std::string& typeDesc,
228 :
ValueArg<T>(
"", name, desc, req, value, typeDesc, v)
240 const std::string& desc,
246 :
ValueArg<T>(
"", name, desc, req, value, constraint, v)
254 const std::string& desc,
261 :
ValueArg<T>(
"", name, desc, req, value, constraint, v)
328 argList.push_back( const_cast<Arg*>(static_cast<const Arg* const>(
this)) );
void _extractValue(const std::string &val)
virtual std::string longID(const std::string &val="val") const
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.
TCLAP command line argument parser classes.
const std::string & getName() const
Defines the interaction between an argument and a constraint.
UnlabeledValueArg(const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, bool ignoreable=false, Visitor *v=NULL)
virtual std::string toString() const
virtual void add(Arg &a)=0
virtual bool processArg(int *i, std::vector< std::string > &args)
std::string getDescription() const
virtual bool operator==(const Arg &a) const
bool _hasBlanks(const std::string &s) const
virtual void addToList(std::list< Arg * > &argList) const
TCLAP command line argument parser classes.
virtual std::string shortID(const std::string &val="val") const
static void check(bool req, const std::string &argName)