Defines a complete set of properties for a single object instance.
More...
#include <OgreProperty.h>
Defines a complete set of properties for a single object instance.
◆ PropertyMap
◆ PropertySet()
Ogre::PropertySet::PropertySet |
( |
| ) |
|
◆ ~PropertySet()
Ogre::PropertySet::~PropertySet |
( |
| ) |
|
◆ addProperty()
Adds a property to this set.
The PropertySet is responsible for deleting this object.
◆ getProperty()
Gets the property object for a given property name.
Note that this property will need to be cast to a templated property compatible with the type you will be setting. You might find the overloaded set and get<type> methods quicker if you already know the type.
◆ getValue()
template<typename T >
void Ogre::PropertySet::getValue |
( |
const String & |
name, |
|
|
T & |
value |
|
) |
| const |
|
inline |
Get a named property value.
◆ getValueMap()
Gets an independently usable collection of property values from the current state.
◆ hasProperty()
bool Ogre::PropertySet::hasProperty |
( |
const String & |
name | ) |
const |
Reports whether this property set contains a named property.
◆ removeProperty()
void Ogre::PropertySet::removeProperty |
( |
const String & |
name | ) |
|
Removes the named property from the property set.
◆ setValue() [1/3]
void Ogre::PropertySet::setValue |
( |
const String & |
name, |
|
|
const char * |
pChar |
|
) |
| |
|
inline |
◆ setValue() [2/3]
template<typename T >
void Ogre::PropertySet::setValue |
( |
const String & |
name, |
|
|
const T * |
value |
|
) |
| |
|
inline |
Set a named property value (via pointer to avoid copy).
◆ setValue() [3/3]
template<typename T >
void Ogre::PropertySet::setValue |
( |
const String & |
name, |
|
|
T |
value |
|
) |
| |
|
inline |
Set a named property value.
◆ setValueMap()
Sets the current state from a given value map.
The documentation for this class was generated from the following file: