template<class C, class T>
class SGRawValueMethods< C, T >
A value managed through an object and access methods.
A read-only value will not have a setter; a write-only value will not have a getter.
Definition at line 582 of file props.hxx.
template<class C , class T >
virtual bool setValue |
( |
T |
value | ) |
|
|
inlinevirtual |
Assign a new underlying value.
If the new value cannot be set (because this is a read-only raw value, or because the new value is not acceptable for some reason) this method returns false and leaves the original value unchanged.
- Parameters
-
value | The actual value for the property. |
- Returns
- true if the value was set successfully, false otherwise.
- See also
- getValue
Implements SGRawValue< T >.
Definition at line 594 of file props.hxx.
594 {
595 if (_setter) { (_obj.*_setter)(value); return true; }
596 else return false;
597 }