#include <YWidgetOpt.h>
Public Member Functions | |
| YAnyOpt () | |
| virtual | ~YAnyOpt () |
| void | setValue (T newValue) |
| void | undef () |
| bool | defined () const |
| T | value () const |
Protected Member Functions | |
| virtual T | defaultValue () const =0 |
Protected Attributes | |
| bool | _defined |
| T | _value |
|
|||||||||
|
Constructor |
|
|||||||||
|
Destructor |
|
|||||||||
|
The default value - the value that will be returned if none has been explicitly set. Overwrite this method with the class specific default value. |
|
|||||||||
|
Return whether or not the value is defined, i.e. whether or not a value has been set before. |
|
||||||||||
|
Set the value. |
|
|||||||||
|
Invalidate the value, i.e. make it undefined - just like at object creation time. |
|
|||||||||
|
Returns the value of this option, if any has been defined, or the default value otherwise. |
|
|||||
|
|
|
|||||
|
|
1.4.6