OpenASIP
2.0
|
#include <OptionValue.hh>
Public Member Functions | |
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 std::string | stringValue (int index=0) const |
virtual int | integerValue (int index=0) const |
virtual double | realValue () const |
virtual bool | isFlagOn () const |
virtual bool | isFlagOff () const |
virtual int | listSize () const |
Private Member Functions | |
OptionValue (const OptionValue &) | |
Copying not allowed. More... | |
OptionValue & | operator= (const OptionValue &) |
Assignment not allowed. More... | |
An abstract base class for modeling all kinds of options.
Possible option types are bool, real, int, and string. Each option knows its name and description.
Definition at line 51 of file OptionValue.hh.
OptionValue::OptionValue | ( | ) |
|
virtual |
|
private |
Copying not allowed.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
OutOfRange | Never thrown by this function. |
Reimplemented in IntegerListOptionValue, and IntegerOptionValue.
Definition at line 129 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in BoolOptionValue.
Definition at line 178 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in BoolOptionValue.
Definition at line 166 of file OptionValue.cc.
References __func__.
Referenced by ToggleUnitDetailsCmd::Do(), UnitFigure::drawSelf(), ToggleUnitDetailsCmd::isChecked(), UnitFigure::layoutSelf(), ProximMachineStateWindow::onToggleUnitInfo(), and ProximMachineStateWindow::onUpdateUIEvent().
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in StringListOptionValue, and IntegerListOptionValue.
Definition at line 190 of file OptionValue.cc.
References __func__.
|
private |
Assignment not allowed.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in RealOptionValue.
Definition at line 154 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in BoolOptionValue.
Definition at line 106 of file OptionValue.cc.
References __func__.
Referenced by ToggleUnitDetailsCmd::Do(), and ProximMachineStateWindow::onToggleUnitInfo().
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in IntegerListOptionValue.
Definition at line 117 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in IntegerOptionValue.
Definition at line 76 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in RealOptionValue.
Definition at line 96 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in StringOptionValue.
Definition at line 66 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
Reimplemented in UnsignedIntegerOptionValue.
Definition at line 86 of file OptionValue.cc.
References __func__.
|
virtual |
This implementation should never be called.
WrongSubclass | Called for a wrong subclass. |
OutOfRange | Never thrown by this function. |
Reimplemented in StringListOptionValue, and StringOptionValue.
Definition at line 142 of file OptionValue.cc.
References __func__.