37 Prefs(
bool autowrite =
true,
bool writealways =
true);
43 bool set(
const std::string & key,
const std::string & value);
44 bool set(
const std::string & key,
int value);
45 bool set(
const std::string & key,
bool value);
47 std::string
getStr (
const std::string & key)
const;
48 std::string
getPath(
const std::string & key)
const;
49 int getNum (
const std::string & key)
const;
50 bool getBool(
const std::string & key)
const;
53 static const char delim() {
return '\\';}
55 static char delim() {
return '/';}
~Prefs()
Definition: prefs.cpp:100
bool mRead
Definition: prefs.h:62
#define PREFCOUNT
Definition: prefs.h:28
std::string mFilename
Definition: prefs.h:64
bool getBool(const std::string &key) const
Definition: prefs.cpp:248
bool mAutoWrite
Definition: prefs.h:60
Prefs(bool autowrite=true, bool writealways=true)
Definition: prefs.cpp:47
bool write()
Definition: prefs.cpp:142
std::string mNothing
Definition: prefs.h:65
int getNum(const std::string &key) const
Definition: prefs.cpp:235
std::string getStr(const std::string &key) const
Definition: prefs.cpp:202
std::array< std::pair< std::string, std::string >, 23 > mPrefs
Definition: prefs.h:66
bool mWriteAlways
Definition: prefs.h:61
std::string getPath(const std::string &key) const
Definition: prefs.cpp:211
static char delim()
Definition: prefs.h:55
bool read()
Definition: prefs.cpp:105
PrefsArray
Definition: prefs.h:35