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:
- 5:bfeb0882bd82
- Parent:
- 0:ae5bf432c249
- Child:
- 6:cd28ab597256
diff -r 70042853d43b -r bfeb0882bd82 IniManager.h
--- a/IniManager.h Sun Mar 16 22:23:11 2014 +0000
+++ b/IniManager.h Wed Mar 26 11:20:18 2014 +0000
@@ -35,7 +35,7 @@
* a private copy of the filename. Be sure that this parameter
* has the right path prefix based on what file system you have.
*/
- INI(const char * file);
+ INI(const char * file = NULL);
/** destructor for the ini manager.
*
@@ -43,6 +43,16 @@
*/
~INI(void);
+ /** set the file to use
+ *
+ * If not set at the time of construction, or if a change is needed, this
+ * API can be used.
+ *
+ * @param file is the filename to manage.
+ * @returns true if success, false if memory could not be allocated.
+ */
+ bool SetFile(const char * file);
+
/** Read a string from the ini file - if it exists.
*
* This searches the ini file for the named section and key and if found it will