114 virtual int getInt()
const;
165 virtual bool set(
const std::string& v) = 0;
183 virtual bool isBool()
const;
357 bool set(
const std::string& v);
395 Option_String(
const std::string& value, std::string typeName =
"STR");
428 bool set(
const std::string& v);
496 bool set(
const std::string& v);
549 bool set(
const std::string& v);
680 bool set(
const std::string& v);
virtual double getFloat() const
Returns the stored double value.
virtual const IntVector & getIntVector() const
Returns the stored integer vector.
bool markSet()
Marks the information as set.
bool myAmWritable
information whether the value may be changed
virtual std::string getString() const
Returns the stored string value.
void setDescription(const std::string &desc)
Sets the description of what this option does.
bool myAmSet
information whether the value is set
bool isWriteable() const
Returns the information whether the option may be set a further time.
virtual int getInt() const
Returns the stored integer value.
void unSet()
marks this option as unset
Option(bool set=false)
Constructor.
void resetDefault()
Resets the option to be on its default value.
virtual Option & operator=(const Option &s)
Assignment operator.
std::vector< int > IntVector
Definition of a vector of ints.
std::string myTypeName
A type name for this option (has presets, but may be overwritten)
virtual bool isFileName() const
Returns the information whether this option is a file name.
virtual bool isBool() const
Returns the information whether the option is a bool option.
A class representing a single program option.
virtual bool getBool() const
Returns the stored boolean value.
virtual bool isDefault() const
Returns the information whether the option holds the default value.
virtual std::string getValueString() const =0
Returns the string-representation of the value.
const std::string & getDescription() const
Returns the description of what this option does.
void resetWritable()
Resets the option to be writeable.
std::string myDescription
The description what this option does.
bool isSet() const
returns the information whether this options holds a valid value
virtual const std::string & getTypeName() const
Returns the mml-type name of this option.
bool myHaveTheDefaultValue
information whether the value is the default value (is then set)