14 #ifndef WS_GLOBAL_PROPERTIES_H__
15 #define WS_GLOBAL_PROPERTIES_H__
39 std::string
get(
const std::string& section,
const std::string& id,
const std::string& def);
48 void set(
const std::string& section, std::string key, std::string value);
59 std::string
getAndReplace(
const std::string& section,
const std::string&
id,
const std::string& newVal,
const std::string& def);
static WsGlobalProperties * m_instance
WsGlobalProperties()
Constructor.
Abstract Properties class.
static WsGlobalProperties * instance()
void set(const std::string §ion, std::string key, std::string value)
Changes or sets the propety with key 'key' to value 'value' If the property already exist...
std::string getAndReplace(const std::string §ion, const std::string &id, const std::string &newVal, const std::string &def)
Search for property id and replaces the $1 in the string with newVal. If the property is not found...
Abstract class for properties.