shiny
0.4
a shader and material management library for OGRE
|
base class that allows setting properties with any kind of value-type and retrieving them More...
#include <PropertyBase.hpp>
Public Member Functions | |
PropertySetGet (PropertySetGet *parent) | |
void | save (std::ofstream &stream, const std::string &indentation) |
void | copyAll (PropertySet *target, PropertySetGet *context, bool copyParent=true) |
call setProperty for each property/value pair stored in this | |
void | copyAll (PropertySetGet *target, PropertySetGet *context, bool copyParent=true) |
call setProperty for each property/value pair stored in this | |
void | setParent (PropertySetGet *parent) |
PropertySetGet * | getParent () |
void | setContext (PropertySetGet *context) |
PropertySetGet * | getContext () |
virtual void | setProperty (const std::string &name, PropertyValuePtr value) |
PropertyValuePtr & | getProperty (const std::string &name) |
void | deleteProperty (const std::string &name) |
const PropertyMap & | listProperties () |
bool | hasProperty (const std::string &name) const |
Protected Attributes | |
PropertySetGet * | mParent |
PropertySetGet * | mContext |
used to retrieve linked property values | |
base class that allows setting properties with any kind of value-type and retrieving them
|
protected |
the parent can provide properties as well (when they are retrieved via getProperty)
multiple levels of inheritance are also supported
children can override properties of their parents