21#ifndef NESTED_SETTINGS_H_
22#define NESTED_SETTINGS_H_
35 const std::string& aPath );
43 bool LoadFromFile(
const wxString& aDirectory =
"" )
override;
50 bool SaveToFile(
const wxString& aDirectory =
"",
bool aForce =
false )
override;
friend class NESTED_SETTINGS
NESTED_SETTINGS is a JSON_SETTINGS that lives inside a JSON_SETTINGS.
void SetParent(JSON_SETTINGS *aParent, bool aLoadFromFile=true)
std::string m_path
The path (in pointer format) of where to store this document in the parent.
JSON_SETTINGS * GetParent()
JSON_SETTINGS * m_parent
A pointer to the parent object to load and store from.
virtual ~NESTED_SETTINGS()
bool SaveToFile(const wxString &aDirectory="", bool aForce=false) override
Calls Store() and then saves the JSON document contents into the parent JSON_SETTINGS.
bool LoadFromFile(const wxString &aDirectory="") override
Loads the JSON document from the parent and then calls Load()