Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: config/ConfigParser.h
- Revision:
- 101:dbcd3bc51758
- Parent:
- 99:e369fc75c000
--- a/config/ConfigParser.h Thu May 07 13:56:19 2015 +0000
+++ b/config/ConfigParser.h Fri May 08 12:19:57 2015 +0000
@@ -6,10 +6,13 @@
class ConfigParser
{
public:
- ConfigParser(Dict& d) : dict(d), parseOK(true) {}
+ Dict dict;
+public:
+ ConfigParser() : dict(), parseOK(true) {}
virtual ~ConfigParser() {}
bool parse(const char*);
protected:
+ typedef void (ConfigParser::*PtrParseFunc) (Token&);
void parseKey(Token&);
void parseAssignOp(Token&);
void parseValue(Token&);
@@ -17,8 +20,6 @@
void parseError(Token&);
void parseRecover(Token&);
private:
- typedef void (ConfigParser::*PtrParseFunc) (Token&);
- Dict& dict;
bool parseOK;
PtrParseFunc ptrPF;
char key[MAX_KEY_LEN];

Cumulocity