99 virtual void save()
const = 0;
111 void register_group(
string const& aGroupSubkey,
string const& aGroupTitle =
string{})
115 template <
typename T>
118 auto newSetting = make_ref<neolib::setting<as_setting_t<T>>>(*
this, aKey, aDefaultValue, aSettingConstraints, aFormat);
122 template <
typename T>
127 template <
typename T>
virtual i_map< i_string, i_string > const & all_categories() const =0
virtual void change_setting(i_setting &aExistingSetting, i_setting_value const &aValue, bool aApplyNow=true)=0
virtual void changed_setting(i_setting const &aSetting)=0
virtual void register_friendly_text(i_setting const &aSetting, i_string const &aText, i_string const &aFriendlyText)=0
void register_group(string const &aGroupSubkey, string const &aGroupTitle=string{})
declare_event(setting_changing, const i_setting &) declare_event(setting_changed
virtual void discard_changes()=0
i_setting & register_setting(string const &aKey, T const &aDefaultValue, string const &aFormat={})
i_setting & register_setting(string const &aKey, T const &aDefaultValue, setting_constraints< as_setting_t< T > > const &aSettingConstraints, string const &aFormat={})
virtual bool modified() const =0
virtual i_map< i_string, i_ref_ptr< i_setting > > const & all_settings() const =0
virtual i_string const & group_title(i_string const &aGroupSubkey) const =0
static uuid const & iid()
virtual i_vector< i_ref_ptr< i_setting > > const & all_settings_ordered() const =0
virtual void register_group(i_string const &aGroupSubkey, i_string const &aGroupTitle=string{})=0
void register_category(string const &aCategorySubkey, string const &aCategoryTitle=string{})
void change_setting(i_setting &aExistingSetting, T const &aValue, bool aApplyNow=true)
virtual i_setting & setting(i_string const &aKey)=0
virtual void save() const =0
virtual void register_category(i_string const &aCategorySubkey, i_string const &aCategoryTitle=string{})=0
virtual void changing_setting(i_setting const &aSetting)=0
virtual i_string const & friendly_text(i_setting const &aSetting, i_string const &aText) const =0
virtual void register_setting(i_setting &aSetting)=0
virtual void apply_changes()=0
virtual i_map< i_string, i_map< i_string, i_string > > const & all_groups() const =0
virtual i_string const & category_title(i_string const &aCategorySubkey) const =0
virtual i_setting const & setting(i_string const &aKey) const =0
virtual void delete_setting(i_setting &aExistingSetting)=0
uuid make_uuid(const std::string &aHyphenatedHexString)
typename as_setting< T >::type as_setting_t
#define declare_event(declName,...)
setting_already_registered()