/
AppCfgData.h
43 lines (32 loc) · 1.11 KB
/
AppCfgData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* ************************************************************************ */
/*
AppCfgData.h - Intended to provide application configuration data, this
could be things such as -
1) Application name
2) Feature control flags. A "debug mute" is implemented here.
3) Text message (be careful to not use too much memory!) content.
*/
#ifndef APPCFGDATA_H
#define APPCFGDATA_H
// Configuration Object base class
#include "ConfigData.h"
class AppCfgData : public ConfigData {
public:
AppCfgData(const char *cfgfile);
private:
void parseJSON(std::unique_ptr<char[]>& buf) override;
//////////////////////////////////////////////////////////////////////////
/*
This is one of the places where you would customize this class to be
used with your application specific configuration data.
The other place is in AppCfgData.cpp
*/
public:
String getAppName();
bool getDebugMute();
bool setDebugMute(bool _debugmute);
private:
String appname;
bool debugmute;
};
#endif // APPCFGDATA_H