115 virtual int getInt()
const;
166 virtual bool set(
const std::string& v) = 0;
184 virtual bool isBool()
const;
358 bool set(
const std::string& v);
396 Option_String(
const std::string& value, std::string typeName =
"STR");
429 bool set(
const std::string& v);
497 bool set(
const std::string& v);
550 bool set(
const std::string& v);
681 bool set(
const std::string& v);
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
virtual SUMOReal getFloat() const
Returns the stored SUMOReal value.
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)