32 #if defined(WIN32) || defined(DOXYGEN)
34 #include "databuffer.h"
42 class RegistryKey_Impl;
96 int get_value_int(
const std::string &name,
int default_value = 0)
const;
100 std::string
get_value_string(
const std::string &name,
const std::string &default_value = std::string())
const;
102 std::vector<std::string>
get_value_multi_string(
const std::string &name,
const std::vector<std::string> &default_value = std::vector<std::string>())
const;
134 std::shared_ptr<RegistryKey_Impl> impl;
void delete_key(const std::string &subkey, bool recursive)
void throw_if_null() const
Throw an exception if this object is invalid.
std::vector< std::string > get_value_multi_string(const std::string &name, const std::vector< std::string > &default_value=std::vector< std::string >()) const
@ create_always
Definition: registry_key.h:64
@ key_users
Definition: registry_key.h:59
General purpose data buffer.
Definition: databuffer.h:43
RegistryKey(PredefinedKey key, const std::string &subkey, unsigned int access_rights=KEY_ALL_ACCESS, unsigned int create_flags=create_always)
std::vector< std::string > get_subkey_names() const
void set_value_int(const std::string &name, int value)
void delete_value(const std::string &name)
@ key_current_user
Definition: registry_key.h:57
std::vector< std::string > get_value_names() const
CreateFlags
Definition: registry_key.h:63
Registry key class.
Definition: registry_key.h:48
RegistryKey open_key(const std::string &subkey, unsigned int access_rights=KEY_ALL_ACCESS)
void set_value_string(const std::string &name, const std::string &value)
int get_value_int(const std::string &name, int default_value=0) const
bool is_null() const
Returns true if this object is invalid.
Definition: registry_key.h:85
RegistryKey create_key(const std::string &subkey, unsigned int access_rights=KEY_ALL_ACCESS, CreateFlags create_flags=create_always)
std::string get_value_string(const std::string &name, const std::string &default_value=std::string()) const
@ key_classes_root
Definition: registry_key.h:55
static void delete_key(PredefinedKey key, const std::string &subkey, bool recursive)
@ key_local_machine
Definition: registry_key.h:58
PredefinedKey
Definition: registry_key.h:54
DataBuffer get_value_binary(const std::string &name, const DataBuffer &default_value=DataBuffer()) const
@ key_current_config
Definition: registry_key.h:56
@ create_new
Definition: registry_key.h:65
void set_value_binary(const std::string &name, const DataBuffer &value)
@ create_volatile
Definition: registry_key.h:66