16BasicSettings::BasicSettings() =
default;
18BasicSettings::~BasicSettings() =
default;
20bool BasicSettings::Exists(
const wxString&
key)
const
50 *value =
static_cast<float>(d);
68 return { defaultValue };
76 return { defaultValue };
97 return Write(
key,
static_cast<double>(value));
118 mSettings->get().DoEndGroup();
static Settings & settings()
GroupScope(BasicSettings &settings)
Base class for objects that provide facility to store data persistently, and access it with string ke...
double ReadDouble(const wxString &key, double defaultValue) const
virtual bool HasGroup(const wxString &key) const =0
Checks whether specified group exists relative to the current group.
GroupScope BeginGroup(const wxString &prefix)
Appends a prefix to the current group or sets a new absolute path. Group that was set as current befo...
virtual bool HasEntry(const wxString &key) const =0
Checks whether specified key exists within the current group.
bool DeleteGroup(const wxString &key)
Deletes specified group if exists.
virtual bool Write(const wxString &key, bool value)=0
long ReadLong(const wxString &key, long defaultValue) const
virtual bool Remove(const wxString &key)=0
Removes group or entry within the current group, if exists. Pass empty string to remove each entry in...
bool ReadBool(const wxString &key, bool defaultValue) const
bool DeleteEntry(const wxString &key)
Deletes specified entry if exists.
virtual bool Read(const wxString &key, bool *value) const =0