7 #include <glow/logging.h>
13 virtual bool update(
const std::string& key,
const std::string& svalue) = 0;
22 PropertyCollection(regexns::regex regex, std::function<T(
const std::string&)> converter);
25 PropertyImpl<T>* getImpl(
const std::string& key,
const T& defaultValue);
27 virtual bool update(
const std::string& key,
const std::string& svalue)
override;
29 void set(
const std::string& key,
const T& value);
31 T
get(
const std::string& name)
const;
32 T
get(
const std::string& name,
const T& defaultValue)
const;
36 std::map<std::string, T> m_values;
37 std::map<std::string, PropertyImpl<T>*> m_properties;
38 regexns::regex m_regex;
39 std::function<T(const std::string&)> m_converter;
46 #include "propertycollection.inl"
Definition: propertycollection.h:20
Definition: propertycollection.h:11