dxd - dynax driver framework  2721
cross platform open source driver development framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dx::registry< exception_t > Class Template Reference

Windows registry access. More...

#include <dx_registry.h>

+ Inheritance diagram for dx::registry< exception_t >:
+ Collaboration diagram for dx::registry< exception_t >:

Public Member Functions

void initialize (const char *path,::HKEY root,::REGSAM rights=KEY_READ, const char *key=nullptr) throw (exception_t)
 
void initialize (const char *path,::REGSAM rights=KEY_READ,::HKEY root=HKEY_CURRENT_USER, const char *key=nullptr) throw (exception_t)
 
 operator std::string () const throw (exception_t)
 
template<typename type >
 operator type () const throw (exception_t)
 
registryoperator= (unsigned int value) throw (exception_t)
 
registry operator[] (const char *key) const throw (exception_t)
 
 registry ()=default
 
 registry (const char *path,::REGSAM rights=KEY_READ,::HKEY root=HKEY_CURRENT_USER, const char *key=nullptr) throw (exception_t)
 
 registry (const char *path,::HKEY root,::REGSAM rights=KEY_READ, const char *key=nullptr) throw (exception_t)
 
registrysignal () throw (exception_t)
 
registrywait (int64_t timeout=0,::DWORD filter=REG_NOTIFY_CHANGE_NAME|REG_NOTIFY_CHANGE_ATTRIBUTES|REG_NOTIFY_CHANGE_LAST_SET|REG_NOTIFY_CHANGE_SECURITY, bool subtree=true) throw (exception_t)
 
 ~registry () noexcept
 

Static Private Member Functions

static void pass (::HRESULT test) throw (exception_t)
 
static void pass (unsigned long test) throw (exception_t)
 
static void pass (::BOOL test) throw (exception_t)
 specialization for standard windows API BOOL return type More...
 
static void pass (::HANDLE test) throw (exception_t)
 specialization for test validy of windows HANDLE type More...
 
static void pass (::HWND test) throw (exception_t)
 specialization for test validy of windows HWND type - which is of course different from HANDLE More...
 
static void pass (::ATOM test) throw (exception_t)
 specialization for standard windows API ATOM return type More...
 
template<>
static void pass (unsigned long test) throw(::HRESULT)
 
template<>
static void pass (::BOOL test) throw(::HRESULT)
 
template<>
static void pass (::HANDLE test) throw(::HRESULT)
 
template<>
static void pass (::HWND test) throw(::HRESULT)
 
template<>
static void pass (::ATOM test) throw(::HRESULT)
 
template<class return_t >
static void pass (return_t value) throw (exception_t)
 
template<class return_t >
static void pass (bool test, return_t value) throw (exception_t)
 
static void pass_strict (::LONG test) throw (exception_t)
 

Detailed Description

template<class exception_t = os_result>
class dx::registry< exception_t >

Windows registry access.

Constructor & Destructor Documentation

template<class exception_t = os_result>
dx::registry< exception_t >::registry ( )
default

+ Here is the caller graph for this function:

template<class exception_t = os_result>
dx::registry< exception_t >::registry ( const char *  path,
::REGSAM  rights = KEY_READ,
::HKEY  root = HKEY_CURRENT_USER,
const char *  key = nullptr 
)
throw (exception_t
)
inline

+ Here is the call graph for this function:

template<class exception_t = os_result>
dx::registry< exception_t >::registry ( const char *  path,
::HKEY  root,
::REGSAM  rights = KEY_READ,
const char *  key = nullptr 
)
throw (exception_t
)
inline
template<class exception_t = os_result>
dx::registry< exception_t >::~registry ( )
inlinenoexcept

Member Function Documentation

template<class exception_t = os_result>
void dx::registry< exception_t >::initialize ( const char *  path,
::HKEY  root,
::REGSAM  rights = KEY_READ,
const char *  key = nullptr 
)
throw (exception_t
)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class exception_t = os_result>
void dx::registry< exception_t >::initialize ( const char *  path,
::REGSAM  rights = KEY_READ,
::HKEY  root = HKEY_CURRENT_USER,
const char *  key = nullptr 
)
throw (exception_t
)
inline

+ Here is the call graph for this function:

template<class exception_t = os_result>
dx::registry< exception_t >::operator std::string ( ) const
throw (exception_t
)
inline

+ Here is the call graph for this function:

template<class exception_t = os_result>
template<typename type >
dx::registry< exception_t >::operator type ( ) const
throw (exception_t
)
inline

+ Here is the call graph for this function:

template<class exception_t = os_result>
registry& dx::registry< exception_t >::operator= ( unsigned int  value)
throw (exception_t
)
inline

+ Here is the call graph for this function:

template<class exception_t = os_result>
registry dx::registry< exception_t >::operator[] ( const char *  key) const
throw (exception_t
)
inline

+ Here is the call graph for this function:

template<class exception_t = os_result>
registry& dx::registry< exception_t >::signal ( )
throw (exception_t
)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class exception_t = os_result>
registry& dx::registry< exception_t >::wait ( int64_t  timeout = 0,
::DWORD  filter = REG_NOTIFY_CHANGE_NAME|REG_NOTIFY_CHANGE_ATTRIBUTES|REG_NOTIFY_CHANGE_LAST_SET|REG_NOTIFY_CHANGE_SECURITY,
bool  subtree = true 
)
throw (exception_t
)
inline

+ Here is the call graph for this function:


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

(c) copyright 2009 dynamic acoustics e.U. generated on Sun May 5 2019

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.