#include <Configuration.h>
Inheritance diagram for ACE_Configuration_Win32Registry:
Public Methods | |
ACE_EXPLICIT | ACE_Configuration_Win32Registry (HKEY hKey) |
virtual | ~ACE_Configuration_Win32Registry (void) |
Destructor. | |
virtual int | open_section (const ACE_Configuration_Section_Key &base, const ACE_TCHAR *sub_section, int create, ACE_Configuration_Section_Key &result) |
virtual int | remove_section (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *sub_section, int recursive) |
Removes a named section. | |
virtual int | enumerate_values (const ACE_Configuration_Section_Key &key, int index, ACE_TString &name, VALUETYPE &type) |
virtual int | enumerate_sections (const ACE_Configuration_Section_Key &key, int index, ACE_TString &name) |
virtual int | set_string_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, const ACE_TString &value) |
Sets a string-typed value. | |
virtual int | set_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int value) |
Sets a integer-typed value. | |
virtual int | set_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, const void *data, size_t length) |
Sets a binary-typed value. | |
virtual int | get_string_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, ACE_TString &value) |
Gets a string-typed value. | |
virtual int | get_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int &value) |
Gets an integer-typed value. | |
virtual int | get_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, void *&data, size_t &length) |
Gets a binary-typed value. | |
virtual int | find_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, VALUETYPE &type) |
virtual int | remove_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name) |
Removes the the value <name> from <key>. returns non zero on error. | |
virtual int | operator== (const ACE_Configuration_Win32Registry &rhs) const |
virtual int | operator!= (const ACE_Configuration_Win32Registry &rhs) const |
Static Public Methods | |
HKEY | resolve_key (HKEY hKey, const ACE_TCHAR *path, int create=1) |
Protected Methods | |
int | load_key (const ACE_Configuration_Section_Key &key, HKEY &hKey) |
Gets the HKEY for a configuration section. | |
ACE_Configuration_Win32Registry (void) | |
ACE_Configuration_Win32Registry (const ACE_Configuration_Win32Registry &rhs) | |
ACE_Configuration_Win32Registry & | operator= (const ACE_Configuration_Win32Registry &rhs) |
The win32 implementation basically makes calls through to the registry functions. The API is very similar so very little work must be done
|
Constructor for registry configuration database. hKey is the base registry key to attach to. This class takes ownership of hKey, it will invoke <RegCloseKey> on it upon destruction. |
|
Destructor.
|
|
|
|
|
|
Enumerates through the subsections in a section.
Implements ACE_Configuration. |
|
Enumerates through the values in a section.
Implements ACE_Configuration. |
|
Retrieves the type of a named configuration value.
Implements ACE_Configuration. |
|
Gets a binary-typed value.
Implements ACE_Configuration. |
|
Gets an integer-typed value.
Implements ACE_Configuration. |
|
Gets a string-typed value.
Implements ACE_Configuration. |
|
Gets the HKEY for a configuration section.
|
|
Opens a named section in an existing section.
Implements ACE_Configuration. |
|
|
|
|
|
|
|
Removes a named section.
Implements ACE_Configuration. |
|
Removes the the value <name> from <key>. returns non zero on error.
Implements ACE_Configuration. |
|
This method traverses <path> through <hKey>. It is useful when you want the HKEY for a specific registry key, especially when initializing this implementation. Caller is responsible for closeing this key when it is no longer used. If create is 1 (default) the keys are create if they don't already exist. Returns 0 on error |
|
Sets a binary-typed value.
Implements ACE_Configuration. |
|
Sets a integer-typed value.
Implements ACE_Configuration. |
|
Sets a string-typed value.
Implements ACE_Configuration. |