openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
nconfig.h
Go to the documentation of this file.
1 #ifndef __lib_base_nconfig_h_
2 #define __lib_base_nconfig_h_
3 
4 #include <string>
5 #include <stdbool.h>
6 
8 {
9 protected:
11  static eConfigManager *getInstance();
12 
13  virtual std::string getConfig(const char *key) = 0;
14 
15 public:
17  virtual ~eConfigManager();
18 
19  static std::string getConfigValue(const char *key);
20  static int getConfigIntValue(const char *key, int defaultvalue = 0);
21  static bool getConfigBoolValue(const char *key, bool defaultvalue = false);
22 };
23 
24 #endif /* __lib_base_nconfig_h_ */
Definition: nconfig.h:8
static eConfigManager * instance
Definition: nconfig.h:10
virtual std::string getConfig(const char *key)=0
static bool getConfigBoolValue(const char *key, bool defaultvalue=false)
Definition: nconfig.cpp:31
static eConfigManager * getInstance()
Definition: nconfig.cpp:15
static int getConfigIntValue(const char *key, int defaultvalue=0)
Definition: nconfig.cpp:25
virtual ~eConfigManager()
Definition: nconfig.cpp:10
eConfigManager()
Definition: nconfig.cpp:5
static std::string getConfigValue(const char *key)
Definition: nconfig.cpp:20