Caelum  0.6.3
Public Member Functions | List of all members
Caelum::DefaultTypeDescriptor Class Reference

Default implementation of a TypeDescriptor. More...

#include <TypeDescriptor.h>

Inheritance diagram for Caelum::DefaultTypeDescriptor:
Inheritance graph
[legend]

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 ValuePropertyDescriptorgetPropertyDescriptor (const Ogre::String &name) const
 Get a property descriptor; or null if not available. More...
 
virtual const std::vector< StringgetPropertyNames () 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
 

Detailed Description

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.

Member Function Documentation

PropertyMap& Caelum::DefaultTypeDescriptor::getPropertyMap ( )
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.

References name.

virtual const ValuePropertyDescriptor* Caelum::DefaultTypeDescriptor::getPropertyDescriptor ( const Ogre::String name) const
virtual

Get a property descriptor; or null if not available.

Parameters
nameName of the property to request.
Returns
A pointer to a property descriptor; or null if not available.

Implements Caelum::TypeDescriptor.

virtual const std::vector<String> Caelum::DefaultTypeDescriptor::getPropertyNames ( ) const
virtual

Get a map of all supported properties.

Returns a complete list of all supported properties; by value.

Implements Caelum::TypeDescriptor.

virtual const PropertyMap Caelum::DefaultTypeDescriptor::getFullPropertyMap ( ) const
virtual

Get a map of all supported properties.

Returns a complete list of all supported properties; by value.

Implements Caelum::TypeDescriptor.


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