Caelum::AccesorPropertyDescriptor< TargetT, ParamT, InParamT, OutParamT > Class Template Reference

ValuePropertyDescriptor implementation based on function pointers to get/set methods. More...

#include <TypeDescriptor.h>

Inheritance diagram for Caelum::AccesorPropertyDescriptor< TargetT, ParamT, InParamT, OutParamT >:

Caelum::TypedValuePropertyDescriptor< ParamT > Caelum::ValuePropertyDescriptor

List of all members.

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.


Detailed Description

template<class TargetT, typename ParamT, typename InParamT = const ParamT&, typename OutParamT = const ParamT>
class Caelum::AccesorPropertyDescriptor< TargetT, ParamT, InParamT, OutParamT >

ValuePropertyDescriptor implementation based on function pointers to get/set methods.

Definition at line 159 of file TypeDescriptor.h.


Member Function Documentation

template<class TargetT , typename ParamT , typename InParamT = const ParamT&, typename OutParamT = const ParamT>
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.


The documentation for this class was generated from the following file:

Generated on Sun Aug 9 10:24:22 2009 for Caelum by  doxygen 1.5.9