Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
PropertyCollection< T > Class Template Reference
Inheritance diagram for PropertyCollection< T >:
[legend]
Collaboration diagram for PropertyCollection< T >:
[legend]

Public Member Functions

 PropertyCollection (regexns::regex regex, std::function< T(const std::string &)> converter)
 
PropertyImpl< T > * getImpl (const std::string &key)
 
PropertyImpl< T > * getImpl (const std::string &key, const T &defaultValue)
 
virtual bool update (const std::string &key, const std::string &svalue) override
 
void set (const std::string &key, const T &value)
 
get (const std::string &name) const
 
get (const std::string &name, const T &defaultValue) const
 

Protected Member Functions

PropertyImpl< T > * getOrCreate (const std::string &key)
 
PropertyImpl< T > * create (const std::string &key)
 

Protected Attributes

std::map< std::string, T > m_values
 
std::map< std::string,
PropertyImpl< T > * > 
m_properties
 
regexns::regex m_regex
 
std::function< T(const
std::string &)> 
m_converter
 

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