15 #ifndef TCLAP_UNLABELED_VALUE_ARGUMENT_H
16 #define TCLAP_UNLABELED_VALUE_ARGUMENT_H
34 class UnlabeledValueArg :
public ValueArg<T>
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)
213 _ignoreable = ignoreable;
221 const std::string& desc,
224 const std::string& typeDesc,
228 :
ValueArg<T>(
"", name, desc, req, value, typeDesc, v)
230 _ignoreable = ignoreable;
240 const std::string& desc,
246 :
ValueArg<T>(
"", name, desc, req, value, constraint, v)
248 _ignoreable = ignoreable;
254 const std::string& desc,
261 :
ValueArg<T>(
"", name, desc, req, value, constraint, v)
263 _ignoreable = ignoreable;
278 if ( _hasBlanks( args[*i] ) )
283 _extractValue( args[*i] );
294 std::string
id =
"<" + _typeDesc +
">";
308 std::string
id =
"<" + _typeDesc +
">";
328 argList.push_back(
const_cast<Arg*
>(
static_cast<const Arg* const
>(
this)) );