#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). | |
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. |
Definition at line 159 of file TypeDescriptor.h.
virtual bool Caelum::AccesorPropertyDescriptor< TargetT, ParamT, InParamT, OutParamT >::canGetValue | ( | ) | const [inline, virtual] |
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.
Definition at line 176 of file TypeDescriptor.h.