ISLEman
Classes | Public Member Functions | List of all members
PropertyMapper< T > Class Template Reference

Helper class to map a property name to a handler member function. More...

Public Member Functions

void addProperty (const char *name, typename PropertyFunc::Handler handle)
 Add a property to the map. More...
 
TemplateVariant get (const T *obj, const char *name) const
 Gets the value of a property. More...
 

Detailed Description

template<typename T>
class PropertyMapper< T >

Helper class to map a property name to a handler member function.

Member Function Documentation

§ addProperty()

template<typename T>
void PropertyMapper< T >::addProperty ( const char *  name,
typename PropertyFunc::Handler  handle 
)
inline

Add a property to the map.

Parameters
[in]nameThe name of the property to add.
[in]objThe object handling access to the property.
[in]handleThe method to call when the property is accessed.

§ get()

template<typename T>
TemplateVariant PropertyMapper< T >::get ( const T *  obj,
const char *  name 
) const
inline

Gets the value of a property.

Parameters
[in]nameThe name of the property.
Returns
A variant representing the properties value or an invalid variant if it was not found.

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