23 #ifndef cmdValueArg_H_
24 #define cmdValueArg_H_
40 #if defined(HAVE_SSTREAM)
42 #elif defined(HAVE_STRSTREAM)
45 #error "Need a stringstream (sstream or strstream) to compile!"
48 #ifdef DtUSE_UTILITIES_NAMESPACE
49 namespace DtUSE_UTILITIES_NAMESPACE
90 const std::string& name,
91 const std::string& desc,
94 const std::string& typeDesc,
119 const std::string& name,
120 const std::string& desc,
123 const std::string& typeDesc,
149 const std::string& name,
150 const std::string& desc,
153 const std::vector<T>& allowed,
177 const std::string& name,
178 const std::string& desc,
181 const std::vector<T>& allowed,
191 virtual bool processArg(
int* i, std::vector<std::string>& args);
194 const T& getValue()
const;
200 void setValue(
const T& val);
204 T* getInternalPtrValue();
211 virtual std::string shortID(
const std::string& val =
"val")
const;
215 virtual std::string longID(
const std::string& val =
"val")
const;
241 void _extractValue(
const std::string& val );
245 void _checkAllowed(
const std::string& val );
254 #ifdef DtUSE_UTILITIES_NAMESPACE
259 #define cmdValueArg_inl_
261 #include "cmdValueArg.inl"
262 #undef cmdValueArg_inl_
A base class that defines the interface for visitors.
Definition: cmdVisitor.h:41
This file declares classes for VR-Link command line parsing utility.
The basic labeled argument that parses a value.
Definition: cmdValueArg.h:63
std::vector< T > _allowed
A list of allowed values.
Definition: cmdValueArg.h:228
A virtual base class that defines the essential data for all arguments.
Definition: cmdArg.h:48
T _value
The value parsed from the command line.
Definition: cmdValueArg.h:222
The base class that manages the command line definition and passes along the parsing to the appropria...
Definition: cmdLineInterface.h:52
std::string _typeDesc
A human readable description of the type to be parsed.
Definition: cmdValueArg.h:235