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;
void SetParent(JSON_SETTINGS *aParent, bool aLoadFromFile=true)
JSON_SETTINGS * GetParent()
bool LoadFromFile(const wxString &aDirectory="") override
Loads the JSON document from the parent and then calls Load()
bool SaveToFile(const wxString &aDirectory="", bool aForce=false) override
Calls Store() and then saves the JSON document contents into the parent JSON_SETTINGS.
NESTED_SETTINGS is a JSON_SETTINGS that lives inside a JSON_SETTINGS.
JSON_SETTINGS * m_parent
A pointer to the parent object to load and store from.
virtual ~NESTED_SETTINGS()
NESTED_SETTINGS(const std::string &aName, int aSchemaVersion, JSON_SETTINGS *aParent, const std::string &aPath)
std::string m_path
The path (in pointer format) of where to store this document in the parent.