A simple .ini file interface.
Dependents: Smart-WiFly-WebServer SignalGenerator WattEye X10Svr
Revision 10:57b93035ad82, committed 2015-07-03
- Comitter:
- WiredHome
- Date:
- Fri Jul 03 17:51:24 2015 +0000
- Parent:
- 9:4947b8c244e9
- Child:
- 11:738604f18088
- Commit message:
- Minor change to Write to reflect that all parameters are read-only.
Changed in this revision
| IniManager.cpp | Show annotated file Show diff for this revision Revisions of this file |
| IniManager.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/IniManager.cpp Mon Jul 07 15:22:19 2014 +0000
+++ b/IniManager.cpp Fri Jul 03 17:51:24 2015 +0000
@@ -163,7 +163,7 @@
// once complete, if something actually changed, then rename the .ini to .bak and rename the .new to .ini
// once complete, if nothing actually changed, then delete the .new
//
-bool INI::WriteString(const char * section, const char * key, char * value)
+bool INI::WriteString(const char * section, const char * key, const char * value)
{
bool found = false;
bool fileChanged = false;
--- a/IniManager.h Mon Jul 07 15:22:19 2014 +0000
+++ b/IniManager.h Fri Jul 03 17:51:24 2015 +0000
@@ -94,7 +94,7 @@
*
* @return true if the write was successful; false otherwise.
*/
- bool WriteString(const char * section, const char * key, char * buffer);
+ bool WriteString(const char * section, const char * key, const char * buffer);
private:
char * iniFile;