Voxellancer
0.3
A game about voxels in space
|
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) |
T | get (const std::string &name) const |
T | 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 |