v3 Solution

Dependencies:   EthernetInterface QEI_hw QEIx4 mbed-rtos mbed realtimeMMLib

MMiniFileReader.h

Committer:
GTNicholson
Date:
23 months ago
Revision:
5:4499a802a7a3
Parent:
0:70c9f7c6844b

File content as of revision 5:4499a802a7a3:

#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);

};