Caelum
0.6.4
|
Abstract interface for a type descriptor. More...
#include <TypeDescriptor.h>
Public Types | |
typedef std::map< String, const ValuePropertyDescriptor * > | PropertyMap |
Public Member Functions | |
virtual const ValuePropertyDescriptor * | getPropertyDescriptor (const Ogre::String &name) const =0 |
Get a property descriptor; or null if not available. More... | |
virtual const std::vector< String > | getPropertyNames () const =0 |
Get a map of all supported properties. More... | |
virtual const PropertyMap | getFullPropertyMap () const =0 |
Get a map of all supported properties. More... | |
Abstract interface for a type descriptor.
A type descriptor contains informations about the properties of another object. It provides access to a map of strings to ValuePropertyDescriptor. All methods are const.
This is not a full reflection mechanism; it doesn't care about methods and parameters. It's just a way to access object properties in a uniform way.
The list of properties supported by a type descriptor is fixed.
The type descriptor is responsible for the lifetime of ValuePropertyDescriptor objects; never the user.
|
pure virtual |
Get a property descriptor; or null if not available.
name | Name of the property to request. |
Implemented in Caelum::DefaultTypeDescriptor.
|
pure virtual |
Get a map of all supported properties.
Returns a complete list of all supported properties; by value.
Implemented in Caelum::DefaultTypeDescriptor.
|
pure virtual |
Get a map of all supported properties.
Returns a complete list of all supported properties; by value.
Implemented in Caelum::DefaultTypeDescriptor.