1 #ifndef _WX_MLBASE_DBLCONF_H_ 2 #define _WX_MLBASE_DBLCONF_H_ 6 #include <wx/fileconf.h> 19 const wxString& appName = wxEmptyString,
20 const wxString& vendorName = wxEmptyString,
21 const wxString& viewName = wxEmptyString,
22 const wxString& settingsConf = wxEmptyString,
24 const wxMBConv &conv = wxConvAuto()
29 wxInputStream& inStream,
30 const wxString& viewName = wxEmptyString,
31 const wxMBConv &conv = wxConvAuto()
37 virtual void SetPath(
const wxString& strPath);
38 virtual const wxString&
GetPath()
const {
return m_entry.path; }
40 virtual bool GetFirstGroup(wxString& str,
long& lIndex)
const;
41 virtual bool GetNextGroup(wxString& str,
long& lIndex)
const;
42 virtual bool GetFirstEntry(wxString& str,
long& lIndex)
const;
43 virtual bool GetNextEntry(wxString& str,
long& lIndex)
const;
45 virtual size_t GetNumberOfEntries(
bool bRecursive =
false)
const;
46 virtual size_t GetNumberOfGroups(
bool bRecursive =
false)
const;
48 virtual bool HasGroup(
const wxString& strName)
const;
49 virtual bool HasEntry(
const wxString& strName)
const;
51 virtual bool Flush(
bool bCurrentOnly =
false);
53 virtual bool RenameEntry(
const wxString& oldName,
const wxString& newName);
54 virtual bool RenameGroup(
const wxString& oldName,
const wxString& newName);
56 virtual bool DeleteEntry(
const wxString& key,
bool bGroupIfEmptyAlso =
true);
57 virtual bool DeleteGroup(
const wxString& key);
58 virtual bool DeleteAll();
61 virtual bool DoReadString(
const wxString& key, wxString* pStr)
const;
62 virtual bool DoReadLong(
const wxString& key,
long* pl)
const;
64 virtual bool DoWriteString(
const wxString& key,
const wxString& szValue);
65 virtual bool DoWriteLong(
const wxString& key,
long lValue);
66 #if wxCHECK_VERSION(2,9,0) && wxUSE_BASE64 67 virtual bool DoReadBinary(
const wxString& key, wxMemoryBuffer* buf)
const;
68 virtual bool DoWriteBinary(
const wxString& key,
const wxMemoryBuffer& buf);
87 bool LoadStream(wxInputStream& inStream, wxString* err = NULL);
102 void ProcessException(wxDatabaseException& e,
bool fail =
true);
104 void SetRootPath(
dbentry& entry);
106 bool FindEntries(
const wxString& nameORpath,
dbentries& entries);
107 bool AddEntry(
dbentry& parent,
const wxString& name,
const wxString* value = NULL);
108 bool WriteEntry(
dbentry& entry,
const wxString& name,
const wxString& value);
124 #endif//_WX_MLBASE_DBLCONF_H_ wxPreparedStatement * m_pStatementSqlDelEntry
wxPreparedStatement * m_pStatementSqlDropAll
wxPreparedStatement * m_pStatementSqlEditEntry
#define WXDLLIMPEXP_MLBASE
wxPreparedStatement * m_pStatementSqlAddEntry
std::vector< dbentry > dbentries
wxDatabaseConfig * m_self
virtual const wxString & GetPath() const
wxPreparedStatement * m_pStatementSqlFindEntries