24 #ifdef MCLIENTLIB_EXPORTS
25 #define MCLIENTLIB_API __declspec(dllexport)
27 #define MCLIENTLIB_API __declspec(dllimport)
31 #ifndef MCLIENTLIB_EXPORTS
33 #define MCLIENTLIB_API
35 #define MCLIENTLIB_API
38 #define MCLIENTLIB_API
43 #pragma warning(disable: 4251)
50 namespace MClientLib {
87 bool removeKey(
const char* key);
88 std::vector<std::string> getKeys();
91 bool getFloat(
const char* key,
float& dest,
bool* state = 0);
92 bool getInt(
const char* key,
int& dest,
bool* state= 0);
93 bool getBool(
const char* key,
bool& dest,
bool* state= 0);
94 bool getString(
const char* key, std::string& dest,
bool* state= 0,
bool* subst = 0);
95 bool getTimet(
const char* key, time_t& dest,
bool* state= 0);
96 bool getLong(
const char* key,
long& dest,
bool* state= 0);
97 bool getInt64(
const char* key,
long long int& dest,
bool* state= 0);
99 void setFloat(
const char* key,
float value,
bool state =
true,
bool notModified=
false);
100 void setInt(
const char* key,
int value,
bool state =
true,
bool notModified=
false);
101 void setBool(
const char* key,
bool value,
bool state =
true,
bool notModified=
false);
102 void setString(
const char* key, std::string value,
bool state =
true,
bool subst =
false,
bool notModified=
false);
103 void setTimet(
const char* key, time_t* value,
bool state =
true,
bool notModified=
false);
104 void setLong(
const char* key,
long value,
bool state =
true,
bool notModified=
false);
105 void setInt64(
const char* key,
long long int value,
bool state =
true,
bool notModified=
false);
107 std::string getString(
const char* key);
108 bool isEnabled(
const char* key);