![]() |
libfilezilla
|
Prepresents a key in the Windows registry. More...
#include <registry.hpp>
Classes | |
| struct | iterator |
Public Types | |
| enum | regview { regview_native , regview_32 , regview_64 } |
| using | const_iterator = iterator |
Public Member Functions | |
| regkey (HKEY const root, std::wstring const &subkey, bool readonly, regview v=regview_native) | |
| See. | |
| regkey (regkey const &)=delete | |
| regkey & | operator= (regkey const &)=delete |
| void | close () |
| bool | open (HKEY const root, std::wstring const &subkey, bool readonly, regview v=regview_native) |
| Opens the specified registry key. | |
| bool | has_value (std::wstring const &name) const |
| std::wstring | value (std::wstring const &name) const |
| Gets the value with the given name as wstring, converting if necessary. | |
| uint64_t | int_value (std::wstring const &name) const |
| Gets the value with the given name as integer, converting if necessary. | |
| bool | set_value (std::wstring const &name, std::wstring const &value) |
| bool | set_value (std::wstring const &name, uint64_t value) |
| operator bool () const | |
| bool | delete_value (std::wstring const &name) |
| iterator | begin () const |
| iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
Prepresents a key in the Windows registry.
Can access both the appropaire native registry view, as well as explicitly the 32-bit and 64bit registry views.
|
explicit |
See.
| bool open | ( | HKEY const | root, |
| std::wstring const & | subkey, | ||
| bool | readonly, | ||
| regview | v = regview_native ) |
Opens the specified registry key.
If readonly is not set, missing subkeys are automatically created