git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44737
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+\helpref{wxObject}{wxobject}
\wxheading{Include files}
\wxheading{Include files}
bool m_isDirty; // if true, we have unsaved changes
DECLARE_NO_COPY_CLASS(wxFileConfig)
bool m_isDirty; // if true, we have unsaved changes
DECLARE_NO_COPY_CLASS(wxFileConfig)
+ DECLARE_ABSTRACT_CLASS(wxFileConfig)
wxString m_strLocalFilename; // name of the private INI file
wxString m_strGroup, // current group in appname.ini file
m_strPath; // the rest of the path (no trailing '_'!)
wxString m_strLocalFilename; // name of the private INI file
wxString m_strGroup, // current group in appname.ini file
m_strPath; // the rest of the path (no trailing '_'!)
+
+ DECLARE_NO_COPY_CLASS(wxIniConfig)
+ DECLARE_ABSTRACT_CLASS(wxIniConfig)
virtual bool DoWriteLong(const wxString& key, long lValue);
private:
virtual bool DoWriteLong(const wxString& key, long lValue);
private:
- // no copy ctor/assignment operator
- wxRegConfig(const wxRegConfig&);
- wxRegConfig& operator=(const wxRegConfig&);
-
// these keys are opened during all lifetime of wxRegConfig object
wxRegKey m_keyLocalRoot, m_keyLocal,
m_keyGlobalRoot, m_keyGlobal;
// current path (not '/' terminated)
wxString m_strPath;
// these keys are opened during all lifetime of wxRegConfig object
wxRegKey m_keyLocalRoot, m_keyLocal,
m_keyGlobalRoot, m_keyGlobal;
// current path (not '/' terminated)
wxString m_strPath;
+
+ DECLARE_NO_COPY_CLASS(wxRegConfig)
+ DECLARE_ABSTRACT_CLASS(wxRegConfig)
virtual bool DoWriteLong(const wxString& key, long lValue);
private:
virtual bool DoWriteLong(const wxString& key, long lValue);
private:
- // no copy ctor/assignment operator
- wxPrefConfig(const wxPrefConfig&);
- wxPrefConfig& operator=(const wxPrefConfig&);
-
// current path (not '/' terminated)
wxString m_strPath;
// current path (not '/' terminated)
wxString m_strPath;
// current group modified ?
bool m_modGroup;
// current group modified ?
bool m_modGroup;
+
+ DECLARE_NO_COPY_CLASS(wxPrefConfig)
+ DECLARE_ABSTRACT_CLASS(wxPrefConfig)
};
#endif // _PREFCONF_H_
};
#endif // _PREFCONF_H_
// ----------------------------------------------------------------------------
// wxConfigBase
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxConfigBase
// ----------------------------------------------------------------------------
+IMPLEMENT_ABSTRACT_CLASS(wxConfigBase, wxObject)
// Not all args will always be used by derived classes, but including them all
// in each class ensures compatibility.
// Not all args will always be used by derived classes, but including them all
// in each class ensures compatibility.
// ----------------------------------------------------------------------------
// ctor
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ctor
// ----------------------------------------------------------------------------
+IMPLEMENT_ABSTRACT_CLASS(wxFileConfig, wxConfigBase)
void wxFileConfig::Init()
{
void wxFileConfig::Init()
{
// ----------------------------------------------------------------------------
// ctor & dtor
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ctor & dtor
// ----------------------------------------------------------------------------
+IMPLEMENT_ABSTRACT_CLASS(wxIniConfig, wxConfigBase)
wxIniConfig::wxIniConfig(const wxString& strAppName,
const wxString& strVendor,
wxIniConfig::wxIniConfig(const wxString& strAppName,
const wxString& strVendor,
// ----------------------------------------------------------------------------
// ctor/dtor
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ctor/dtor
// ----------------------------------------------------------------------------
+IMPLEMENT_ABSTRACT_CLASS(wxRegConfig, wxConfigBase)
// create the config object which stores its data under HKCU\vendor\app and, if
// style & wxCONFIG_USE_GLOBAL_FILE, under HKLM\vendor\app
// create the config object which stores its data under HKCU\vendor\app and, if
// style & wxCONFIG_USE_GLOBAL_FILE, under HKLM\vendor\app
// ----------------------------------------------------------------------------
// ctor/dtor
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ctor/dtor
// ----------------------------------------------------------------------------
+IMPLEMENT_ABSTRACT_CLASS(wxPrefConfig, wxConfigBase)
wxPrefConfig::wxPrefConfig(const wxString& appName, const wxString& vendorName,
const wxString& strLocal, const wxString& strGlobal,
wxPrefConfig::wxPrefConfig(const wxString& appName, const wxString& vendorName,
const wxString& strLocal, const wxString& strGlobal,