3#include <wx/confbase.h>
4#include <wx/fileconf.h>
9 if(prefix.StartsWith(
"/"))
33 : mConfig{
std::move(config)}
40 mConfig = std::make_shared<wxFileConfig>(wxEmptyString, wxEmptyString, filepath);
55 return path.Right(path.Length() - 1);
65 if(
mConfig->GetFirstGroup(group, index))
68 groups.push_back(group);
69 while(
mConfig->GetNextGroup(group, index))
70 groups.push_back(group);
113 return mConfig->DeleteEntry(path,
false);
115 return mConfig->DeleteGroup(path);
144 if(
str.ToLongLong(value))
205 if(
key.StartsWith(
"/"))
static ProjectFileIORegistry::AttributeWriterEntry entry
wxString MakePath(const wxString &key) const
bool Read(const wxString &key, bool *value) const override
bool Flush() noexcept override
std::shared_ptr< wxConfigBase > mConfig
wxArrayString GetChildGroups() const override
Returns all child groups within the current group.
wxString GetGroup() const override
Returns current group prefix.
bool HasEntry(const wxString &key) const override
Checks whether specified key exists within the current group.
void DoBeginGroup(const wxString &prefix) override
wxArrayString GetChildKeys() const override
Returns all child keys within the current group.
wxArrayString mGroupStack
bool Remove(const wxString &key) override
Removes group or entry within the current group, if exists. Pass empty string to remove each entry in...
void Clear() override
Remove all groups and keys.
bool HasGroup(const wxString &key) const override
Checks whether specified group exists relative to the current group.
SettingsWX(std::shared_ptr< wxConfigBase > config)
void DoEndGroup() noexcept override
bool Write(const wxString &key, bool value) override