shiny  0.4
a shader and material management library for OGRE
Public Member Functions | Protected Attributes | List of all members
sh::PropertySetGet Class Reference

base class that allows setting properties with any kind of value-type and retrieving them More...

#include <PropertyBase.hpp>

+ Inheritance diagram for sh::PropertySetGet:

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)
 
PropertySetGetgetParent ()
 
void setContext (PropertySetGet *context)
 
PropertySetGetgetContext ()
 
virtual void setProperty (const std::string &name, PropertyValuePtr value)
 
PropertyValuePtr & getProperty (const std::string &name)
 
void deleteProperty (const std::string &name)
 
const PropertyMaplistProperties ()
 
bool hasProperty (const std::string &name) const
 

Protected Attributes

PropertySetGetmParent
 
PropertySetGetmContext
 used to retrieve linked property values
 

Detailed Description

base class that allows setting properties with any kind of value-type and retrieving them

Member Data Documentation

◆ mParent

PropertySetGet* sh::PropertySetGet::mParent
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


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