#ifndef _REGCONF_H
#define _REGCONF_H
+#ifdef __GNUG__
+#pragma interface "regconf.h"
+#endif
+
// ----------------------------------------------------------------------------
// wxRegConfig
// ----------------------------------------------------------------------------
virtual bool GetFirstEntry(wxString& str, long& lIndex);
virtual bool GetNextEntry (wxString& str, long& lIndex);
+ // tests for existence
+ virtual bool HasGroup(const wxString& strName) const;
+ virtual bool HasEntry(const wxString& strName) const;
+
+ // get number of entries/subgroups in the current group, with or without
+ // it's subgroups
+ virtual uint GetNumberOfEntries(bool bRecursive = FALSE) const = 0;
+ virtual uint GetNumberOfGroups(bool bRecursive = FALSE) const = 0;
+
// read/write
virtual bool Read(wxString&, const char *, const char * = 0) const;
virtual bool Read(long&, const char *, long = 0) const;
virtual bool Write(const char *szKey, const char *szValue);
virtual bool Write(const char *szKey, long Value);
- virtual bool Flush(bool /* bCurrentOnly = FALSE */ ) { return true; }
+ virtual bool Flush(bool /* bCurrentOnly = FALSE */ ) { return TRUE; }
// delete
virtual bool DeleteEntry(const char *szKey, bool bGroupIfEmptyAlso);
wxString m_strPath;
};
-#endif //_REGCONF_H
\ No newline at end of file
+#endif //_REGCONF_H