+uint wxRegConfig::GetNumberOfEntries() const
+{
+ uint nEntries = 0;
+
+ // dummy vars
+ wxString str;
+ long l;
+ bool bCont = GetFirstEntry(str, l);
+ while ( bCont ) {
+ nEntries++;
+
+ bCont = GetNextEntry(str, l);
+ }
+
+ return nEntries;
+}
+
+uint wxRegConfig::GetNumberOfGroups() const
+{
+ uint nGroups = 0;
+
+ // dummy vars
+ wxString str;
+ long l;
+ bool bCont = GetFirstGroup(str, l);
+ while ( bCont ) {
+ nGroups++;
+
+ bCont = GetNextGroup(str, l);
+ }
+
+ return nGroups;
+}
+
+// ----------------------------------------------------------------------------
+// tests for existence
+// ----------------------------------------------------------------------------
+
+bool wxRegConfig::HasGroup(const wxString& strName) const
+{
+ return m_keyLocal.HasSubKey(strName) || m_keyGlobal.HasSubKey(strName);
+}
+
+bool wxRegConfig::HasEntry(const wxString& strName) const
+{
+ return m_keyLocal.HasValue(strName) || m_keyGlobal.HasValue(strName);
+}
+