Red Light Work

Dependencies:   EthernetInterface QEI_hw QEIx4 mbed-rtos mbed realtimeMMLib

Fork of realtimeMM_V3 by Graham Nicholson

Revision:
0:70c9f7c6844b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MMiniFileReader.h	Mon Oct 02 11:19:05 2017 +0000
@@ -0,0 +1,24 @@
+#include <string>
+#include "MMini.h"
+
+class iniFileReader
+{
+public:
+    iniFileReader();
+    ~iniFileReader();
+
+    //std::string ReadStringParam(std::string section, std::string param);
+
+    iniFile ReadFile(const char* filePath);
+
+private:
+
+    bool IsSection(char line[]);
+
+    void ReadSensorSection(char currentSection[], char section[],int size, char line[], iniSensor *sensor);
+    
+    void GetSectionName(char line[], char* result);
+    void GetParamName(char line[], char* result);
+    void GetParamValue(char line[], char* result);
+
+};
\ No newline at end of file