31#if defined(WIN32) || defined(DOXYGEN) 
   33#include "databuffer.h" 
   41        class RegistryKey_Impl;
 
   79                int get_value_int(
const std::string &name, 
int default_value = 0) 
const;
 
   81                std::string 
get_value_string(
const std::string &name, 
const std::string &default_value = std::string()) 
const;
 
   82                std::vector<std::string> 
get_value_multi_string(
const std::string &name, 
const std::vector<std::string> &default_value = std::vector<std::string>()) 
const;
 
   86                void delete_key(
const std::string &subkey, 
bool recursive);
 
   95                std::shared_ptr<RegistryKey_Impl> impl;
 
 
General purpose data buffer.
Definition databuffer.h:42
Registry key class.
Definition registry_key.h:47
CreateFlags
Definition registry_key.h:59
@ create_volatile
Definition registry_key.h:62
@ create_always
Definition registry_key.h:60
@ create_new
Definition registry_key.h:61
void set_value_string(const std::string &name, const std::string &value)
RegistryKey(PredefinedKey key, const std::string &subkey, unsigned int access_rights=KEY_ALL_ACCESS, unsigned int create_flags=create_always)
DataBuffer get_value_binary(const std::string &name, const DataBuffer &default_value=DataBuffer()) const
int get_value_int(const std::string &name, int default_value=0) const
std::string get_value_string(const std::string &name, const std::string &default_value=std::string()) const
RegistryKey open_key(const std::string &subkey, unsigned int access_rights=KEY_ALL_ACCESS)
PredefinedKey
Definition registry_key.h:50
@ key_current_config
Definition registry_key.h:52
@ key_local_machine
Definition registry_key.h:54
@ key_users
Definition registry_key.h:55
@ key_classes_root
Definition registry_key.h:51
@ key_current_user
Definition registry_key.h:53
void set_value_int(const std::string &name, int value)
RegistryKey create_key(const std::string &subkey, unsigned int access_rights=KEY_ALL_ACCESS, CreateFlags create_flags=create_always)
bool is_null() const
Returns true if this object is invalid.
Definition registry_key.h:71
std::vector< std::string > get_value_multi_string(const std::string &name, const std::vector< std::string > &default_value=std::vector< std::string >()) const
void set_value_binary(const std::string &name, const DataBuffer &value)
void throw_if_null() const
Throw an exception if this object is invalid.
void delete_value(const std::string &name)
std::vector< std::string > get_value_names() const
std::vector< std::string > get_subkey_names() const
static void delete_key(PredefinedKey key, const std::string &subkey, bool recursive)
void delete_key(const std::string &subkey, bool recursive)