OpenASIP
2.0
|
#include <OptionValue.hh>
Public Member Functions | |
StringListOptionValue (std::vector< std::string > values) | |
virtual | ~StringListOptionValue () |
virtual std::string | stringValue (int index=0) const |
virtual int | listSize () const |
virtual void | setStringListValue (std::vector< std::string > values) |
Public Member Functions inherited from OptionValue | |
OptionValue () | |
virtual | ~OptionValue () |
virtual void | setStringValue (const std::string &) |
virtual void | setIntegerValue (int) |
virtual void | setUnsignedIntegerValue (unsigned) |
virtual void | setRealValue (double) |
virtual void | setBoolValue (bool) |
virtual void | setIntegerListValue (std::vector< int > values) |
virtual int | integerValue (int index=0) const |
virtual double | realValue () const |
virtual bool | isFlagOn () const |
virtual bool | isFlagOff () const |
Private Member Functions | |
StringListOptionValue (const StringListOptionValue &) | |
Copying not allowed. More... | |
StringListOptionValue & | operator= (const StringListOptionValue &) |
Assignment not allowed. More... | |
Private Attributes | |
std::vector< std::string > | values_ |
The value of option. More... | |
OptionValue that has list of strings as value.
Definition at line 237 of file OptionValue.hh.
StringListOptionValue::StringListOptionValue | ( | std::vector< std::string > | values | ) |
Constructor.
value | The values of string list options. |
Definition at line 460 of file OptionValue.cc.
References values_.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns the size of the string list.
Reimplemented from OptionValue.
Definition at line 505 of file OptionValue.cc.
References values_.
|
private |
Assignment not allowed.
|
virtual |
Sets new value for string list option.
value | New value for the string list option. |
WrongSubclass | Is never thrown by this function. |
Definition at line 477 of file OptionValue.cc.
References values_.
|
virtual |
Returns the value from the given index of string list.
The index must be given between 0 and the size of value vector - 1
WrongSubclass | Is never thrown by this function. |
OutOfRange | If the index is out of the range. |
Reimplemented from OptionValue.
Definition at line 491 of file OptionValue.cc.
References values_.
|
private |
The value of option.
Definition at line 253 of file OptionValue.hh.
Referenced by listSize(), setStringListValue(), StringListOptionValue(), and stringValue().