Helper class for describing types. More...
Public Member Functions | |
template<typename Base > | |
TypeDescription & | BaseClass (Base *object) |
Bind a base class. More... | |
template<typename Base > | |
TypeDescription & | BaseClass (const Base *object) |
Bind a base class. More... | |
template<typename Member > | |
TypeDescription & | Property (const char *name, Member member) |
Bind a member property. More... | |
template<typename Getter , typename Setter > | |
TypeDescription & | Property (const char *name, Getter getter, Setter setter) |
Bind a member property. More... | |
template<typename Getter > | |
TypeDescription & | PropertyReadOnly (const char *name, Getter getter) |
Bind a read-only member property. More... | |
Helper class for describing types.
|
inline |
Bind a base class.
object | pointer to the base part of the object |
|
inline |
Bind a base class.
object | pointer to the base part of the object |
TypeDescription & cohtml::TypeDescription::Property | ( | const char * | name, |
Member | member | ||
) |
Bind a member property.
name | name of the property (this string is NOT copied and must be alive till the view is closed) |
member | pointer to member of the class that the property represents |
TypeDescription & cohtml::TypeDescription::Property | ( | const char * | name, |
Getter | getter, | ||
Setter | setter | ||
) |
Bind a member property.
name | name of the property (this string is NOT copied and must be alive till the view is closed) |
getter | pointer to getter method of the class that the property represents |
setter | pointer to setter method of the class that the property represents |
TypeDescription & cohtml::TypeDescription::PropertyReadOnly | ( | const char * | name, |
Getter | getter | ||
) |
Bind a read-only member property.
name | name of the property (this string is NOT copied and must be alive till the view is closed) |
getter | pointer to getter method of the class that the property represents |