class MapSettingStore

Defined at line 23 of file ../../src/developer/debug/zxdb/client/map_setting_store.h

An implementation of SettingStore that just stores the values in a map. This is used for

standalone settings where there is no separate object backing the storage.

This type of SettingStore also implements fallback for hierarchical settings. If a value is

not explicitly set in the current store, it will recursively query fallback stores until a

value is found.

Public Methods

void MapSettingStore (fxl::RefPtr<SettingSchema> schema, MapSettingStore * fallback)

Defined at line 14 of file ../../src/developer/debug/zxdb/client/map_setting_store.cc

void AddObserver (const std::string & setting_name, SettingStoreObserver * )

Defined at line 17 of file ../../src/developer/debug/zxdb/client/map_setting_store.cc

void RemoveObserver (const std::string & setting_name, SettingStoreObserver * )

Defined at line 21 of file ../../src/developer/debug/zxdb/client/map_setting_store.cc

SettingStore * fallback ()

Defined at line 27 of file ../../src/developer/debug/zxdb/client/map_setting_store.h

void set_fallback (MapSettingStore * fallback)

Defined at line 28 of file ../../src/developer/debug/zxdb/client/map_setting_store.h

Protected Methods

SettingValue GetStorageValue (const std::string & key)

SettingStore implementation.

Defined at line 36 of file ../../src/developer/debug/zxdb/client/map_setting_store.cc

Err SetStorageValue (const std::string & key, SettingValue value)

Defined at line 52 of file ../../src/developer/debug/zxdb/client/map_setting_store.cc

Err ClearStorageValue (const std::string & key)

Defined at line 58 of file ../../src/developer/debug/zxdb/client/map_setting_store.cc