Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
PropertyManager Class Reference

#include <propertymanager.h>

Inheritance diagram for PropertyManager:
[legend]
Collaboration diagram for PropertyManager:
[legend]

Public Member Functions

void load (const std::string &file, const std::string &prefix="")
 
template<typename T >
PropertyImpl< T > * getImpl (const std::string &key)
 
template<typename T >
PropertyImpl< T > * getImpl (const std::string &key, const T &defaultValue)
 
template<typename T >
get (const std::string &name)
 
template<typename T >
get (const std::string &name, const T &defaultValue)
 

Static Public Member Functions

static PropertyManagerinstance ()
 
static void reset ()
 

Protected Member Functions

template<typename T >
PropertyCollection< T > * getPropertyCollection ()
 
template<typename T >
void addPropertyCollection (PropertyCollection< T > *collection)
 

Protected Attributes

std::unordered_map< const
std::type_info
*, std::unique_ptr
< AbstractPropertyCollection > > 
m_propertyCollections
 

Static Protected Attributes

static PropertyManagers_instance
 

Detailed Description

Keeps track of properties and loads ini files. Properties will be updated when a new ini file is loaded. Implements glow::Changeable, so glow::ChangeListener can be notified about changes.


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