Version: 0.6.0

#include <config.h>

Inheritance diagram for wxGISConfig:
Collaboration diagram for wxGISConfig:

Public Member Functions

 wxGISConfig (bool bPortable)
 
void Create (bool bPortable=false)
 
void ReportPaths (void)
 
bool IsOk () const
 
bool operator== (const wxGISConfig &obj) const
 
bool operator!= (const wxGISConfig &obj) const
 
wxString Read (wxGISEnumConfigKey Key, const wxString &sPath, const wxString &sDefaultValue)
 
int ReadInt (wxGISEnumConfigKey Key, const wxString &sPath, int nDefaultValue)
 
double ReadDouble (wxGISEnumConfigKey Key, const wxString &sPath, double dDefaultValue)
 
bool ReadBool (wxGISEnumConfigKey Key, const wxString &sPath, bool bDefaultValue)
 
bool Write (wxGISEnumConfigKey Key, const wxString &sPath, const wxString &sValue)
 
bool Write (wxGISEnumConfigKey Key, const wxString &sPath, bool bValue)
 
bool Write (wxGISEnumConfigKey Key, const wxString &sPath, int nValue)
 
wxXmlNode * GetConfigNode (wxGISEnumConfigKey Key, const wxString &sPath)
 
wxXmlNode * CreateConfigNode (wxGISEnumConfigKey Key, const wxString &sPath)
 
wxString GetLocalConfigDir (void) const
 
wxString GetGlobalConfigDir (void) const
 
wxString GetLocalConfigDirNonPortable (void) const
 
void Save (const wxGISEnumConfigKey Key=enumGISHKAny)
 

Static Public Member Functions

static void DeleteNodeChildren (wxXmlNode *pNode)
 

Protected Member Functions

bool SplitPathToXml (const wxString &fullpath, wxString *psFileName, wxString *psPathInXml)
 
bool SplitPathToAttribute (const wxString &fullpath, wxString *psPathToAttribute, wxString *psAttributeName)
 
wxXmlNode * GetConfigRootNode (wxGISEnumConfigKey Key, const wxString &sFileName) const
 
virtual wxObjectRefData * CreateRefData () const
 
virtual wxObjectRefData * CloneRefData (const wxObjectRefData *data) const
 

Detailed Description

The config main class. This is the wrapper around xml config files. wxGISConfig cached all opened xml config files for speed. All changes are stored to appropriate files before wxGISConfig class destructs on program exit.

Library:  wxGISCore

The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/wxgis/core/config.h
  • /home/bishop/work/projects/nextgismanager/src/core/config.cpp