a2dMemberDclrTyped< basetype, proptype > Class Template Reference
[a2dPropObject holds property objects]

Like a2dPropertyIdTyped, but always references a certain member in a certain class. More...

#include <id.h>

Inheritance diagram for a2dMemberDclrTyped< basetype, proptype >:

Inheritance graph
[legend]
Collaboration diagram for a2dMemberDclrTyped< basetype, proptype >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dMemberDclrTyped (basetype a2dObject::*ptm)
bool SetPropertyToObject (a2dObject *obj, const basetype &value) const
proptype * GetPropertyClone (const a2dObject *obj) const
 retrieve in form of a a2dNamedProperty the value of the property identified with this id
basetype GetPropertyValue (const a2dObject *obj) const
 Get the property value in obj.
basetype GetPropertyValue (const a2dObject *obj, const basetype &defaultvalue) const
 Get the property value in obj, if not found return default value given.

Protected Attributes

basetype a2dObject::* m_ptm
 pointer to member


Detailed Description

template<class basetype, class proptype>
class a2dMemberDclrTyped< basetype, proptype >

Like a2dPropertyIdTyped, but always references a certain member in a certain class.

Definition at line 780 of file id.h.


Member Function Documentation

template<class basetype, class proptype>
proptype * a2dMemberDclrTyped< basetype, proptype >::GetPropertyClone ( const a2dObject obj  )  const [inline]

retrieve in form of a a2dNamedProperty the value of the property identified with this id

The property id is defining the way a a2dNamedProperty can be set or retrieved from the a2dPropObject. If the m_ptm is set that will be used, else m_get and m_set, and in the end via dynamic properties.

Parameters:
obj the object on which the property needs to be retrieved

Reimplemented from a2dPropertyIdTyped< basetype, proptype >.

Definition at line 461 of file id.inl.


The documentation for this class was generated from the following files:
a2dMemberDclrTyped< basetype, proptype > Class Template Reference -- Tue Aug 31 18:30:55 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation