Caelum
0.6.4
|
ValuePropertyDescriptor implementation based on function pointers to get/set methods. More...
#include <TypeDescriptor.h>
Public Types | |
typedef void(TargetT::* | SetFunc) (InParamT) |
typedef OutParamT(TargetT::* | GetFunc) (void) const |
Public Member Functions | |
AccesorPropertyDescriptor (GetFunc getFunc, SetFunc setFunc) | |
virtual bool | canGetValue () const |
If the value of the property can be read (true means write-only). More... | |
virtual bool | canSetValue () const |
If the value of the property can be set (false means read-only). | |
virtual const ParamT | getValueTyped (const void *target) const |
Get the property's value. | |
virtual void | setValueTyped (void *target, const ParamT &value) const |
Set the property's value. | |
ValuePropertyDescriptor implementation based on function pointers to get/set methods.
|
inlinevirtual |
If the value of the property can be read (true means write-only).
This is false for write-only properties. Write-only properties are generally a bad idea but they are supported. Scripting (with .os files) doesn't actually require reading existing values.
Implements Caelum::ValuePropertyDescriptor.