David Smart / IniManager

Dependents:   Smart-WiFly-WebServer SignalGenerator WattEye X10Svr

Revision:
15:3fc2b87a234d
Parent:
14:af370f01dfef
Child:
18:282ed56d983b
--- a/IniManager.h	Sun Nov 13 02:04:16 2016 +0000
+++ b/IniManager.h	Sun Dec 11 14:05:17 2016 +0000
@@ -115,6 +115,34 @@
     */
     bool WriteString(const char * section, const char * key, const char * buffer);
 
+
+    /** Get Section, or Next Section name
+    *
+    * This can be used to walk the list of section names in a file.
+    *
+    * @param[in] After is the name of the section to search after. When NULL, it
+    *           is a "find-first" method.
+    * @param[out] buffer is the caller provided buffer for this method to put the string into.
+    * @param[in] bufferSize is the caller provided declaration of the available space.
+    * @returns true if a new section was found, false otherwise.
+    */
+    bool GetNextSection(const char * after, char * buffer, size_t bufferSize);
+    
+
+    /** Get the first Key, or the next Key, within a section
+    *
+    * This can be used to walk the list of keys in a file.
+    *
+    * @param[in] Section is the name of the section to search.
+    * @param[in] After is the name of the key to search after. When NULL, it
+    *           is a "find-first" method.
+    * @param[out] buffer is the caller provided buffer for this method to put the string into.
+    * @param[in] bufferSize is the caller provided declaration of the available space.
+    * @returns true if a new key was found, false otherwise.
+    */
+    bool GetNextKey(const char * Section, const char * after, char * buffer, size_t bufferSize);
+    
+
 private:
     char * iniFile;