Caelum
0.6.4
|
Default implementation of a TypeDescriptor. More...
#include <TypeDescriptor.h>
Public Member Functions | |
PropertyMap & | getPropertyMap () |
Direct access to the internal property map. More... | |
void | add (const Ogre::String &name, const ValuePropertyDescriptor *descriptor) |
Add a property. Type descriptor takes ownership. | |
void | clear () |
Clear the property map; delete all property descriptors. | |
virtual const ValuePropertyDescriptor * | getPropertyDescriptor (const Ogre::String &name) const |
Get a property descriptor; or null if not available. More... | |
virtual const std::vector< String > | getPropertyNames () const |
Get a map of all supported properties. More... | |
virtual const PropertyMap | getFullPropertyMap () const |
Get a map of all supported properties. More... | |
Additional Inherited Members | |
Public Types inherited from Caelum::TypeDescriptor | |
typedef std::map< String, const ValuePropertyDescriptor * > | PropertyMap |
Default implementation of a TypeDescriptor.
This is a standard implementation of a type descriptor.
It allows direct access to an internal PropertyMap. The user must manually fill the map with property descriptors; probably in an init method of sorts.
|
inline |
Direct access to the internal property map.
Get the property map used to implement this type descriptor. Once initialisation is complete the property map should no longer be modified.
|
virtual |
Get a property descriptor; or null if not available.
name | Name of the property to request. |
Implements Caelum::TypeDescriptor.
|
virtual |
Get a map of all supported properties.
Returns a complete list of all supported properties; by value.
Implements Caelum::TypeDescriptor.
|
virtual |
Get a map of all supported properties.
Returns a complete list of all supported properties; by value.
Implements Caelum::TypeDescriptor.