class SettingSchema
Defined at line 18 of file ../../src/developer/debug/zxdb/client/setting_schema.h
Stores the setting information for a particular context. These are meant to be used for
validation of settings for particular objects (thread, process, etc.).
Public Methods
bool empty ()
Defined at line 33 of file ../../src/developer/debug/zxdb/client/setting_schema.h
const std::map<std::string, Record> & settings ()
Defined at line 37 of file ../../src/developer/debug/zxdb/client/setting_schema.h
bool HasSetting (const std::string & key)
Defined at line 68 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
const Record * GetSetting (const std::string & name)
Returns a null record pointer if the schema does not support a setting with that name.
Defined at line 101 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
void AddBool (std::string name, std::string description, bool value)
Create new items for simple settings that only belong to this schema. For inter-schema options
or for the more complex schema types, create the Setting separately and then insert it to each
schema with AddSetting().
For the String variant, it can take a list of valid options which new values must match to
validate against. This is done as a case-sensitive comparison.
Defined at line 28 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
void AddInt (std::string name, std::string description, int64_t value)
Defined at line 32 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
void AddExecutionScope (std::string name, std::string description, const ExecutionScope value)
Defined at line 36 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
void AddInputLocations (std::string name, std::string description, std::vector<InputLocation> )
Defined at line 41 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
void AddString (std::string name, std::string description, std::string value, std::vector<std::string> valid_options)
Defined at line 46 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
bool AddList (std::string name, std::string description, std::vector<std::string> list, std::vector<std::string> valid_options)
|valid_options| determines which list values will be accepted when writing into a setting which
allows implementation of a list of enumerations.
Will return false if the given list has a entry that is not within the valid options.
Defined at line 51 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
void AddSetting (std::string name, std::string description, SettingValue default_value, std::vector<std::string> valid_options)
|valid_options| determines which list values will be accepted when writing into a string or
list setting which allows implementation of a list of enumerations.
In the future if we need enums that aren't strings, the valid_options vector should be changed
to a vector
<SettingValue
>.
Defined at line 59 of file ../../src/developer/debug/zxdb/client/setting_schema.cc
Err ValidateSetting (const std::string & key, const SettingValue & )
Defined at line 72 of file ../../src/developer/debug/zxdb/client/setting_schema.cc