23 #ifndef DtCmdLine_MULTIPLE_UNLABELED_ARGUMENT_H
24 #define DtCmdLine_MULTIPLE_UNLABELED_ARGUMENT_H
35 #ifdef DtUSE_UTILITIES_NAMESPACE
36 namespace DtUSE_UTILITIES_NAMESPACE
80 const std::string& desc,
81 const std::string& typeDesc,
82 bool ignoreable =
false,
101 const std::string& desc,
102 const std::string& typeDesc,
104 bool ignoreable =
false,
121 const std::string& desc,
122 const std::vector<T>& allowed,
123 bool ignoreable =
false,
141 const std::string& desc,
142 const std::vector<T>& allowed,
144 bool ignoreable =
false,
155 virtual bool processArg(
int* i, std::vector<std::string>& args);
161 virtual std::string shortID(
const std::string& val=
"val")
const;
167 virtual std::string longID(
const std::string& val=
"val")
const;
179 virtual void addToList( std::list<Arg*>& argList )
const;
184 const std::string& desc,
185 const std::string& typeDesc,
188 :
MultiArg<T>(
"", name, desc, false, typeDesc, v)
195 const std::string& desc,
196 const std::string& typeDesc,
200 :
MultiArg<T>(
"", name, desc, false, typeDesc, v)
209 const std::string& desc,
210 const std::vector<T>& allowed,
213 :
MultiArg<T>(
"", name, desc, false, allowed, v)
220 const std::string& desc,
221 const std::vector<T>& allowed,
225 :
MultiArg<T>(
"", name, desc, false, allowed, v)
236 if ( _hasBlanks( args[*i] ) )
241 _extractValue( args[*i] );
248 std::string
id =
"<" + _typeDesc +
"> ...";
256 std::string
id =
"<" + _typeDesc +
"> (accepted multiple times)";
273 argList.push_back( (
Arg*)
this );
278 #ifdef DtUSE_UTILITIES_NAMESPACE