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;
 
 
virtual bool LoadFromFile(const wxString &aDirectory="")
Loads the backing file from disk and then calls Load()
 
JSON_SETTINGS(const wxString &aFilename, SETTINGS_LOC aLocation, int aSchemaVersion)
 
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.
 
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.
 
NESTED_SETTINGS(const std::string &aName, int aSchemaVersion, JSON_SETTINGS *aParent, const std::string &aPath, bool aLoadFromFile=true)