21#ifndef NESTED_SETTINGS_H_
22#define NESTED_SETTINGS_H_
35 const std::string& aPath,
bool aLoadFromFile =
true );
43 bool LoadFromFile(
const wxString& aDirectory =
"" )
override;
50 bool SaveToFile(
const wxString& aDirectory =
"",
bool aForce =
false )
override;
52 void SetParent(
JSON_SETTINGS* aParent,
bool aLoadFromFile =
true );
virtual bool LoadFromFile(const wxString &aDirectory="")
Loads the backing file from disk and then calls Load()
friend class NESTED_SETTINGS
virtual bool SaveToFile(const wxString &aDirectory="", bool aForce=false)
Calls Store() and then writes the contents of the JSON document to a file.
NESTED_SETTINGS is a JSON_SETTINGS that lives inside a JSON_SETTINGS.
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.