|
Windows C++ Library
|
The config data provider that uses the Registry for storage. More...
#include <RegistryCfgProvider.hpp>
Public Member Functions | |
| RegistryCfgProvider (const tstring &publisher, const tstring &application) | |
| Constructor. | |
| virtual | ~RegistryCfgProvider () |
| Destructor. | |
| virtual tstring | readString (const tstring §ionName, const tstring &keyName, const tstring &defaultValue) const |
| Read a string value. | |
| virtual void | writeString (const tstring §ionName, const tstring &keyName, const tstring &value) |
| Write a string value. | |
| virtual void | deleteSection (const tstring §ionName) |
| Delete the entire section. | |
Static Public Member Functions | |
| static bool | isAvailable (const tstring &publisher, const tstring &application) |
| Check if there is a config tree already. | |
| static void | removeConfig (const tstring &publisher, const tstring &application) |
| Remove the config information. | |
Private Member Functions | |
| RegistryCfgProvider (const RegistryCfgProvider &) | |
| RegistryCfgProvider & | operator= (const RegistryCfgProvider &) |
Private Attributes | |
| tstring | m_publisher |
| The name of the publisher. | |
| tstring | m_application |
| The application name. | |
| HKEY | m_rootKey |
| The config root key. | |
| tstring | m_keyPath |
| The config path. | |
The config data provider that uses the Registry for storage.
The values are stored in the HKCU branch.
| WCL::RegistryCfgProvider::RegistryCfgProvider | ( | const tstring & | publisher, |
| const tstring & | application | ||
| ) |
Constructor.
| WCL::RegistryCfgProvider::~RegistryCfgProvider | ( | ) | [virtual] |
Destructor.
| WCL::RegistryCfgProvider::RegistryCfgProvider | ( | const RegistryCfgProvider & | ) | [private] |
| bool WCL::RegistryCfgProvider::isAvailable | ( | const tstring & | publisher, |
| const tstring & | application | ||
| ) | [static] |
Check if there is a config tree already.
| void WCL::RegistryCfgProvider::removeConfig | ( | const tstring & | publisher, |
| const tstring & | application | ||
| ) | [static] |
Remove the config information.
| tstring WCL::RegistryCfgProvider::readString | ( | const tstring & | sectionName, |
| const tstring & | keyName, | ||
| const tstring & | defaultValue | ||
| ) | const [virtual] |
Read a string value.
Implements WCL::IConfigProvider.
| void WCL::RegistryCfgProvider::writeString | ( | const tstring & | sectionName, |
| const tstring & | keyName, | ||
| const tstring & | value | ||
| ) | [virtual] |
Write a string value.
Implements WCL::IConfigProvider.
| void WCL::RegistryCfgProvider::deleteSection | ( | const tstring & | sectionName | ) | [virtual] |
Delete the entire section.
Implements WCL::IConfigProvider.
| RegistryCfgProvider& WCL::RegistryCfgProvider::operator= | ( | const RegistryCfgProvider & | ) | [private] |
tstring WCL::RegistryCfgProvider::m_publisher [private] |
The name of the publisher.
tstring WCL::RegistryCfgProvider::m_application [private] |
The application name.
HKEY WCL::RegistryCfgProvider::m_rootKey [private] |
The config root key.
tstring WCL::RegistryCfgProvider::m_keyPath [private] |
The config path.
1.7.6.1