openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
esimpleconfig.h
Go to the documentation of this file.
1 #ifndef __lib_esimpleconfig_h_
2 #define __lib_esimpleconfig_h_
3 
4 #include <map>
5 #include <string>
6 
7 // Simple configuration reader that doesn't rely on Python to provide values, so is
8 // safe to use in non UI threads
9 namespace eSimpleConfig
10 {
11  std::string getString(const char *key, const char* defaultvalue = "");
12  int getInt(const char *key, int defaultvalue = 0);
13  bool getBool(const char *key, bool defaultvalue = true);
14 }
15 
16 #endif // __lib_esimpleconfig_h_
Definition: esimpleconfig.cpp:15
std::string getString(const char *key, const char *defaultvalue)
Definition: esimpleconfig.cpp:50
bool getBool(const char *key, bool defaultvalue)
Definition: esimpleconfig.cpp:64
int getInt(const char *key, int defaultvalue)
Definition: esimpleconfig.cpp:57