added support for binary data to wxConfig (slightly modified patch 1736788)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-07-12 00:11:03 +00:00
parent 84ebfcbd18
commit 5814e8ba4e
11 changed files with 136 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "wx/object.h"
#include "wx/confbase.h"
#include "buffer.h"
// ----------------------------------------------------------------------------
// wxRegConfig
@@ -90,9 +91,11 @@ protected:
// implement read/write methods
virtual bool DoReadString(const wxString& key, wxString *pStr) const;
virtual bool DoReadLong(const wxString& key, long *plResult) const;
virtual bool DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const;
virtual bool DoWriteString(const wxString& key, const wxString& szValue);
virtual bool DoWriteLong(const wxString& key, long lValue);
virtual bool DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf);
private:
// these keys are opened during all lifetime of wxRegConfig object