115 virtual int getInt()
const;
166 virtual bool set(
const std::string& v) = 0;
184 virtual bool isBool()
const;
365 bool set(
const std::string& v);
403 Option_String(
const std::string& value, std::string typeName =
"STR");
436 bool set(
const std::string& v);
511 bool set(
const std::string& v);
571 bool set(
const std::string& v);
702 bool set(
const std::string& v);
bool markSet()
Marks the information as set.
bool isSet() const
returns the information whether this options holds a valid value
bool myAmWritable
information whether the value may be changed
virtual bool isBool() const
Returns the information whether the option is a bool option.
virtual bool getBool() const
Returns the stored boolean value.
virtual const IntVector & getIntVector() const
Returns the stored integer vector.
void setDescription(const std::string &desc)
Sets the description of what this option does.
virtual const std::string & getTypeName() const
Returns the mml-type name of this option.
bool myAmSet
information whether the value is set
virtual std::string getString() const
Returns the stored string 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 unsigned ints.
const std::string & getDescription() const
Returns the description of what this option does.
std::string myTypeName
A type name for this option (has presets, but may be overwritten)
bool isWriteable() const
Returns the information whether the option may be set a further time.
A class representing a single program option.
virtual bool isDefault() const
Returns the information whether the option holds the default value.
virtual int getInt() const
Returns the stored integer value.
virtual SUMOReal getFloat() const
Returns the stored SUMOReal value.
virtual std::string getValueString() const =0
Returns the string-representation of the value.
virtual bool isFileName() const
Returns the information whether this option is a file name.
void resetWritable()
Resets the option to be writeable.
std::string myDescription
The description what this option does.
bool myHaveTheDefaultValue
information whether the value is the default value (is then set)