Go to the documentation of this file.
55 operator double()
const;
59 operator std::string()
const;
114 void erase(
const std::string& key );
OptionValue(const std::string &)
Creates an option value with string type and sets the value.
void set(const std::string &key, const OptionValue &value)
Add or updates an option in the current Options.
Generic encapsulation of a value used in Options objects.
static Options create(const DcaInstance &aDcaInstance)
Creates an empty option object.
Options DefaultOptions
A constant for a default empty options object. This can be used for functions which require an Option...
OptionValueType type() const
Returns type of the option value.
OptionValue(int)
Creates an option value with integer type and sets the value.
@ OVT_Integer
Option type is numeric (signed)
OptionValueType
Defines the available types of an option value.
OptionValue(double)
Creates an option value with double type and sets the value.
Generic option class, used to set up optional options for several classes, modules etc.
@ OVT_Unknown
Unassigned option type.
OptionValue()
Creates an option value with unknown type.
OptionValue & operator=(int)
Is used to assign a new value and set the type to integer.
@ OVT_Double
Option type is floating point.
Encapsulates the init and deinit of the DCA API.
@ OVT_String
Option type is string.
bool find(const std::string &key, OptionValue &value) const
Perform a lookup for a given key, and return its value and whether or not it was found.
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
void erase(const std::string &key)
Erases an option from the current Options instance if present. This function does nothing if the opti...