Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Smart-WiFly-WebServer SignalGenerator WattEye X10Svr
Diff: IniManager.h
- Revision:
- 15:3fc2b87a234d
- Parent:
- 14:af370f01dfef
- Child:
- 18:282ed56d983b
diff -r af370f01dfef -r 3fc2b87a234d IniManager.h
--- 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;