v3 Solution
Dependencies: EthernetInterface QEI_hw QEIx4 mbed-rtos mbed realtimeMMLib
Diff: MMiniFileReader.h
- Revision:
- 0:70c9f7c6844b
diff -r 000000000000 -r 70c9f7c6844b MMiniFileReader.h --- /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