Nebula
|
#include <posixsettings.h>
A simple wrapper class to store config files in the users home directory Uses Boosts Property_tree library for the time being.
(C) 2013-2018 Individual contributors, see AUTHORS file
Static Public Member Functions | |
static bool | Exists (const Util::String &vendor, const Util::String &key, const Util::String &name) |
return true if a setting exists (uses CurrentUser as RootKey) | |
static bool | WriteString (const Util::String &vendor, const Util::String &key, const Util::String &name, const Util::String &value) |
write a settings entry (uses CurrentUser as RootKey) | |
static Util::String | ReadString (const Util::String &vendor, const Util::String &key, const Util::String &name) |
read a string registry entry, the string will be UTF-8 encoded! | |
static bool | Delete (const Util::String &vendor, const Util::String &key) |
delete a setting (and all its contained values), uses CurrentUser as RootKey | |
Static Private Member Functions | |
static Util::String | GetUserDir () |
Returns path to home directory (redundant with fswrapper but we need to be independent of everything) | |
|
static |
delete a setting (and all its contained values), uses CurrentUser as RootKey
This deletes a complete registry key with all its values.
|
static |
return true if a setting exists (uses CurrentUser as RootKey)
Return true if a specific entry exists in the config files.
|
staticprivate |
Returns path to home directory (redundant with fswrapper but we need to be independent of everything)
|
static |
read a string registry entry, the string will be UTF-8 encoded!
Get a string value from the registry.
Fails hard if the key doesn't exists (use the Exists() method to make sure that the key exists!).
|
static |
write a settings entry (uses CurrentUser as RootKey)
Set a key value in the registry.
This will create the key if it doesn't exist.