registry_string< T > Class Template Reference

#include <registry_value.h>

Inheritance diagram for registry_string< T >:

Public Member Functions

 registry_string (const std::basic_string< TCHAR > &name, const T &defaultval, HKEY base)
 
 operator T ()
 
- Public Member Functions inherited from registry_value
 registry_value (const std::basic_string< TCHAR > &name, HKEY base_)
 
virtual ~registry_value ()
 
bool exists ()
 
void remove_value (void)
 
void remove_key (void)
 

Additional Inherited Members

- Protected Member Functions inherited from registry_value
bool open (bool write_access)
 
void close (void)
 
bool query_value (DWORD *type, DWORD *size, void *buffer)
 
bool set_value (DWORD type, DWORD size, const void *buffer)
 

Detailed Description

template<class T>
class registry_string< T >

To store and retrieve to/from Windows registry an arbitrary type in a registry String value; std::stringstream is used to convert the arbitrary to/from string. The template class can be used with any type that can serialize itself to a stream. This includes the built in types; bool, double, char etc.

#include <libpf/utility/registry_value.h>

Remarks
Warning
Thread safe:
Extendable:
Platform dependencies:

Specialization of registry_string for a std::string. It omits the std::stringstream code that registry_string normally uses.

#include <libpf/utility/registry_value.h>

Remarks
Warning
Thread safe:
Extendable:
Platform dependencies:

Constructor & Destructor Documentation

◆ registry_string()

template<class T >
registry_string< T >::registry_string ( const std::basic_string< TCHAR > &  name,
const T &  defaultval,
HKEY  base 
)
inline

Member Function Documentation

◆ operator T()

template<class T >
registry_string< T >::operator T ( )
inline

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