101 virtual int getInt()
const;
159 virtual bool set(
const std::string& v,
const std::string& orig,
const bool append) = 0;
177 virtual bool isBool()
const;
247 bool markSet(
const std::string& orig);
320 bool set(
const std::string& v,
const std::string& orig,
const bool append);
345 Option_String(
const std::string& value, std::string typeName =
"STR");
364 bool set(
const std::string& v,
const std::string& orig,
const bool append);
407 bool set(
const std::string& v,
const std::string& orig,
const bool append);
435 bool set(
const std::string& v,
const std::string& orig,
const bool append);
468 bool set(
const std::string& v,
const std::string& orig,
const bool append);
508 bool set(
const std::string& v,
const std::string& orig,
const bool append);
553 bool set(
const std::string& v,
const std::string& orig,
const bool append);
std::vector< std::string > StringVector
Definition of a vector of strings.
std::vector< int > IntVector
Definition of a vector of ints.
Option_BoolExtended(bool value)
Constructor for an option that can be used without an argument like Option_BoolExtended but which als...
bool set(const std::string &v, const std::string &orig, const bool append)
bool getBool() const
Returns the stored boolean value.
bool set(const std::string &v, const std::string &orig, const bool append)
bool isBool() const
Returns true, the information whether the option is a bool option.
Option_Bool(bool value)
Constructor for an option with a default value.
std::string getString() const
Legacy method that returns the stored filenames as a comma-separated string.
Option_FileName()
Constructor for an option with no default value.
bool isFileName() const
Returns true, the information whether this option is a file name.
double getFloat() const
Returns the stored double value.
bool set(const std::string &v, const std::string &orig, const bool append)
Stores the given value after parsing it into a double.
Option_Float(double value)
Constructor for an option with a default value.
const IntVector & getIntVector() const
Returns the stored integer vector.
bool set(const std::string &v, const std::string &orig, const bool append)
Stores the given value after parsing it into a vector of integers.
Option_IntVector()
Constructor for an option with no default value.
Option_Integer(int value)
Constructor for an option with a default value.
int getInt() const
Returns the stored integer value.
bool set(const std::string &v, const std::string &orig, const bool append)
Stores the given value after parsing it into an integer.
bool set(const std::string &v, const std::string &orig, const bool append)
Stores the given value.
std::string getString() const
Returns the stored string value.
Option_String()
Constructor for an option with no default value.
const StringVector & getStringVector() const
Returns the stored string vector.
Option_StringVector()
Constructor for an option with no default value.
bool set(const std::string &v, const std::string &orig, const bool append)
Stores the given value after parsing it into a vector of strings.
A class representing a single program option.
bool myHaveTheDefaultValue
information whether the value is the default value (is then set)
bool isWriteable() const
Returns the information whether the option may be set a further time.
bool isSet() const
returns the information whether this options holds a valid value
virtual bool isDefault() const
Returns the information whether the option holds the default value.
virtual std::string getString() const
Returns the stored string value.
bool myAmSet
information whether the value is set
virtual const IntVector & getIntVector() const
Returns the stored integer vector.
void resetWritable()
Resets the option to be writeable.
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)
virtual bool isFileName() const
Returns the information whether this option is a file name.
std::string myDescription
The description what this option does.
virtual const StringVector & getStringVector() const
Returns the stored string 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.
virtual int getInt() const
Returns the stored integer value.
virtual double getFloat() const
Returns the stored double value.
virtual bool getBool() const
Returns the stored boolean value.
Option(bool set=false)
Constructor.
void resetDefault()
Resets the option to be on its default value.
virtual bool set(const std::string &v, const std::string &orig, const bool append)=0
Stores the given value.
bool markSet(const std::string &orig)
Marks the information as set.
bool myAmWritable
information whether the value may be changed
std::string myValueString
The original set string.
virtual bool isBool() const
Returns the information whether the option is a bool option.
const std::string & getValueString() const
Returns the string-representation of the value.