hierarchical Windows registry access
More...
#include <dx_registry.h>
|
dx_catchall_rethrow() class iterator iterator | begin () const |
|
| dx_catchall_rethrow () std |
|
| dx_catchall_rethrow () ~registry() noexcept |
|
iterator | end () const |
|
registry & | erase (const char *subkey=nullptr) try |
|
registry & | initialize (const std::string &key, ::HKEY root=HKEY_CURRENT_USER, ::REGSAM rights=KEY_ALL_ACCESS) try |
|
registry & | initialize (const std::string &key, ::REGSAM rights, ::HKEY root, const char *path=nullptr) try |
|
std::string | key_from_index (size_t index) const try |
|
dx_catchall_rethrow() registry &initialize( | operator keys () const noexcept |
|
registry & | operator= (const registry ®istry) try |
|
| registry (::HKEY root, ::REGSAM rights=KEY_ALL_ACCESS) |
|
| registry (::REGSAM rights, ::HKEY root=HKEY_CURRENT_USER) |
|
| registry (const registry ®istry) |
|
| registry (const registry ®istry, const std::string &key) |
|
| registry (const std::string &key, ::HKEY root, ::REGSAM rights=KEY_ALL_ACCESS) |
|
| registry (const std::string &key={}, ::REGSAM rights=KEY_ALL_ACCESS, ::HKEY root=HKEY_CURRENT_USER) |
|
hierarchical Windows registry access
- usage:
value=
registry[key1][key2]..[keyN](default_value);
[..]
hierarchical Windows registry access
Definition dx_registry.h:62
registry(const std::string &key={}, ::REGSAM rights=KEY_ALL_ACCESS, ::HKEY root=HKEY_CURRENT_USER)
Definition dx_registry.h:117
registry & erase(const char *subkey=nullptr) try
Definition dx_registry.h:273
remark: registry[key] can refer to both, a registry key and a registry value. Conequently it can contain a value and hold subvalues.
On traversal it converts it's root HKey with the stored key into a new HKey becoming the new root HKey. On copy construction it generates a new HKey for the same root key to circumvent missing reference counting.
◆ type
Enumerator |
---|
undefined | |
uint32 | |
uint64 | |
string | |
vendor | |
◆ registry() [1/6]
dx::registry::registry |
( |
const std::string & | key = {}, |
|
|
::REGSAM | rights = KEY_ALL_ACCESS, |
|
|
::HKEY | root = HKEY_CURRENT_USER ) |
|
inlineprotected |
◆ registry() [2/6]
dx::registry::registry |
( |
const std::string & | key, |
|
|
::HKEY | root, |
|
|
::REGSAM | rights = KEY_ALL_ACCESS ) |
|
inlineprotected |
◆ registry() [3/6]
dx::registry::registry |
( |
::REGSAM | rights, |
|
|
::HKEY | root = HKEY_CURRENT_USER ) |
|
inlineprotected |
◆ registry() [4/6]
dx::registry::registry |
( |
::HKEY | root, |
|
|
::REGSAM | rights = KEY_ALL_ACCESS ) |
|
inlineprotected |
◆ registry() [5/6]
dx::registry::registry |
( |
const registry & | registry | ) |
|
|
inlineprotected |
◆ registry() [6/6]
dx::registry::registry |
( |
const registry & | registry, |
|
|
const std::string & | key ) |
|
inlineprotected |
◆ begin()
◆ dx_catchall_rethrow() [1/2]
dx::registry::dx_catchall_rethrow |
( |
| ) |
|
|
inlineprotected |
◆ dx_catchall_rethrow() [2/2]
dx::registry::dx_catchall_rethrow |
( |
| ) |
|
|
inlineprotectednoexcept |
◆ end()
iterator dx::registry::end |
( |
| ) |
const |
|
inlineprotected |
◆ erase()
registry & dx::registry::erase |
( |
const char * | subkey = nullptr | ) |
|
|
inlineprotected |
◆ initialize() [1/2]
registry & dx::registry::initialize |
( |
const std::string & | key, |
|
|
::HKEY | root = HKEY_CURRENT_USER, |
|
|
::REGSAM | rights = KEY_ALL_ACCESS ) |
|
inlineprotected |
◆ initialize() [2/2]
registry & dx::registry::initialize |
( |
const std::string & | key, |
|
|
::REGSAM | rights, |
|
|
::HKEY | root, |
|
|
const char * | path = nullptr ) |
|
inlineprotected |
◆ key_from_index()
std::string dx::registry::key_from_index |
( |
size_t | index | ) |
const |
|
inlineprotected |
◆ operator keys()
◆ operator=()
The documentation for this class was generated from the following file: