Helper class to map a property name to a handler member function. More...
Classes | |
struct | PropertyFunc |
struct | PropertyFuncIntf |
Public Member Functions | |
PropertyMapper () | |
void | addProperty (const char *name, typename PropertyFunc::Handler handle) |
TemplateVariant | get (const T *obj, const char *name) const |
Private Attributes | |
QDict< PropertyFuncIntf > | m_map |
Helper class to map a property name to a handler member function.
Definition at line 225 of file context.cpp.
|
inline |
Definition at line 245 of file context.cpp.
|
inline |
Add a property to the map
[in] | name | The name of the property to add. |
[in] | obj | The object handling access to the property. |
[in] | handle | The method to call when the property is accessed. |
Definition at line 252 of file context.cpp.
|
inline |
Gets the value of a property.
[in] | name | The name of the property. |
Definition at line 269 of file context.cpp.
|
private |
Definition at line 282 of file context.cpp.