OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
Defines a complete set of properties for a single object instance. More...
#include <OgreProperty.h>
Public Types | |
typedef Ogre::MapIterator< PropertyMap > | PropertyIterator |
typedef map< String, PropertyBase * >::type | PropertyMap |
Public Member Functions | |
PropertySet () | |
~PropertySet () | |
void | addProperty (PropertyBase *prop) |
Adds a property to this set. More... | |
PropertyBase * | getProperty (const String &name) const |
Gets the property object for a given property name. More... | |
PropertyIterator | getPropertyIterator () |
template<typename T > | |
void | getValue (const String &name, T &value) const |
Get a named property value. More... | |
PropertyValueMap | getValueMap () const |
Gets an independently usable collection of property values from the current state. More... | |
bool | hasProperty (const String &name) const |
Reports whether this property set contains a named property. More... | |
void | removeProperty (const String &name) |
Removes the named property from the property set. More... | |
template<typename T > | |
void | setValue (const String &name, const T *value) |
Set a named property value (via pointer to avoid copy). More... | |
template<typename T > | |
void | setValue (const String &name, T value) |
Set a named property value. More... | |
void | setValue (const String &name, const char *pChar) |
Special-case char*, convert to String automatically. More... | |
void | setValueMap (const PropertyValueMap &values) |
Sets the current state from a given value map. More... | |
Defines a complete set of properties for a single object instance.
typedef map<String, PropertyBase*>::type Ogre::PropertySet::PropertyMap |
Ogre::PropertySet::PropertySet | ( | ) |
Ogre::PropertySet::~PropertySet | ( | ) |
void Ogre::PropertySet::addProperty | ( | PropertyBase * | prop | ) |
Adds a property to this set.
PropertyBase* Ogre::PropertySet::getProperty | ( | const String & | name | ) | const |
Gets the property object for a given property name.
bool Ogre::PropertySet::hasProperty | ( | const String & | name | ) | const |
Reports whether this property set contains a named property.
void Ogre::PropertySet::removeProperty | ( | const String & | name | ) |
Removes the named property from the property set.
PropertyIterator Ogre::PropertySet::getPropertyIterator | ( | ) |
PropertyValueMap Ogre::PropertySet::getValueMap | ( | ) | const |
Gets an independently usable collection of property values from the current state.
void Ogre::PropertySet::setValueMap | ( | const PropertyValueMap & | values | ) |
Sets the current state from a given value map.
|
inline |
Get a named property value.
References Ogre::PropertyDef::getTypeForValue().
|
inline |
Set a named property value (via pointer to avoid copy).
References Ogre::PropertyDef::getTypeForValue().
|
inline |
Set a named property value.
References Ogre::PropertyDef::getTypeForValue().
|
inline |
Special-case char*, convert to String automatically.
References Ogre::Exception::ERR_INVALIDPARAMS, Ogre::PropertyBase::getType(), Ogre::PropertyDef::getTypeName(), OGRE_EXCEPT, and Ogre::PROP_STRING.