libfilezilla
Public Types | Public Member Functions | List of all members
regkey Class Referencefinal

Prepresents a key in the Windows registry. More...

#include <registry.hpp>

Public Types

enum  regview { regview_native , regview_32 , regview_64 }
 

Public Member Functions

 regkey (HKEY const root, std::wstring const &subkey, bool readonly, regview v=regview_native)
 See. More...
 
 regkey (regkey const &)=delete
 
regkeyoperator= (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. More...
 
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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ regkey()

regkey ( HKEY const  root,
std::wstring const &  subkey,
bool  readonly,
regview  v = regview_native 
)
explicit

See.

See also
regkey::open

Member Function Documentation

◆ open()

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


The documentation for this class was generated from the following file: