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);
~Option_Bool()
Destructor.
bool set(const std::string &v)
Stores the given value after parsing it into an integer.
bool markSet()
Marks the information as set.
bool isSet() const
returns the information whether this options holds a valid value
Option_IntVector & operator=(const Option_IntVector &s)
Assignment operator.
bool myAmWritable
information whether the value may be changed
virtual bool isBool() const
Returns the information whether the option is a bool option.
std::string getValueString() const
Returns the string-representation of the value.
~Option_Float()
Destructor.
virtual bool getBool() const
Returns the stored boolean value.
Option_String & operator=(const Option_String &s)
Assignment operator.
virtual const IntVector & getIntVector() const
Returns the stored integer vector.
bool isFileName() const
Returns true, the information whether this option is a file name.
bool set(const std::string &v)
Stores the given value after parsing it into a SUMOReal.
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.
SUMOReal getFloat() const
Returns the stored SUMOReal value.
bool myAmSet
information whether the value is set
std::string getString() const
Returns the stored string value.
virtual std::string getString() const
Returns the stored string value.
void unSet()
marks this option as unset
Option(bool set=false)
Constructor.
virtual ~Option_IntVector()
Destructor.
std::string getValueString() const
Returns the string-representation of the value.
std::string getValueString() const
Returns the string-representation of the value.
Option_FileName()
Constructor for an option with no default value.
std::string getValueString() const
Returns the string-representation of the value.
void resetDefault()
Resets the option to be on its default value.
virtual ~Option_String()
Destructor.
bool isBool() const
Returns true, the information whether the option is a bool option.
virtual Option & operator=(const Option &s)
Assignment operator.
std::vector< int > IntVector
Definition of a vector of 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)
Option_String()
Constructor for an option with no default value.
int getInt() const
Returns the stored integer value.
bool set(const std::string &v)
Stores the given value after parsing it into a vector of integers.
Option_Integer(int value)
Constructor for an option with a default value.
bool isWriteable() const
Returns the information whether the option may be set a further time.
Option_Bool & operator=(const Option_Bool &s)
Assignment operator.
std::string getValueString() const
Returns the string-representation of the value.
virtual bool set(const std::string &v)=0
Stores the given value.
~Option_Integer()
Destructor.
bool set(const std::string &v)
Stores the given value.
A class representing a single program option.
Option_Float(SUMOReal value)
Constructor for an option with a default value.
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.
bool set(const std::string &v)
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.
Option_IntVector()
Constructor for an option with no default value.
std::string myDescription
The description what this option does.
bool getBool() const
Returns the stored boolean value.
virtual ~Option_FileName()
Destructor.
Option_FileName & operator=(const Option_FileName &s)
Assignment operator.
std::string getValueString() const
Returns the string-representation of the value.
Option_Float & operator=(const Option_Float &s)
Assignment operator.
bool myHaveTheDefaultValue
information whether the value is the default value (is then set)
Option_Bool(bool value)
Constructor for an option with a default value.
const IntVector & getIntVector() const
Returns the stored integer vector.
Option_Integer & operator=(const Option_Integer &s)
Assignment operator.