David Smart / IniManager

Dependents:   Smart-WiFly-WebServer SignalGenerator WattEye X10Svr

Revision:
12:6cf929bde139
Parent:
10:57b93035ad82
Child:
14:af370f01dfef
Child:
16:82e0f8747b95
diff -r 738604f18088 -r 6cf929bde139 IniManager.h
--- a/IniManager.h	Tue Jan 26 11:51:08 2016 +0000
+++ b/IniManager.h	Mon Apr 11 02:16:18 2016 +0000
@@ -83,6 +83,19 @@
     */
     bool ReadString(const char * section, const char * key, char * buffer, size_t bufferSize, const char * defaultString = NULL);
 
+    /** Read a long integer from the ini file - if it exists.
+    *
+    * This searches the ini file for the named section and key and if found it will 
+    * return the long integer value from that entry.
+    *
+    * @param[in] section is the name of the section to search.
+    * @param[in] key is the name of the key to search.
+    * @param[in] defaultValue is the default value to return if the entry is not found.
+    *
+    * @return the value read, or the defaultVaule.
+    */
+    long int ReadLongInt(const char * section, const char * key, long int defaultValue);
+
     /** Writes a string into the ini file
     *
     * This writes a given string into an ini file in the named section and key.