18 #ifndef ION_BASE_SETTINGMANAGER_H_
19 #define ION_BASE_SETTINGMANAGER_H_
24 #include "base/macros.h"
50 static void UnregisterSetting(
SettingBase* setting);
57 static void RegisterGroupListener(
const std::string& group,
58 const std::string& key,
62 static void EnableGroupListener(
const std::string& group,
63 const std::string& key,
67 static void UnregisterGroupListener(
const std::string& group,
68 const std::string& key);
86 #endif // ION_BASE_SETTINGMANAGER_H_
Base class for Setting, which encapsulates the name of the setting and any functors that should be ca...
std::map< std::string, SettingBase * > SettingMap
Maps a setting's name to setting itself and its groups.
std::function< void(SettingBase *setting)> Listener
A function that is called when the value changes.
SettingManager tracks all existing SettingBase instances, and allows callers to obtain a map of all s...