Windows C++ Library
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
WCL::RegistryCfgProvider Class Reference

The config data provider that uses the Registry for storage. More...

#include <RegistryCfgProvider.hpp>

Inheritance diagram for WCL::RegistryCfgProvider:
WCL::IConfigProvider

List of all members.

Public Member Functions

 RegistryCfgProvider (const tstring &publisher, const tstring &application)
 Constructor.
virtual ~RegistryCfgProvider ()
 Destructor.
virtual tstring readString (const tstring &sectionName, const tstring &keyName, const tstring &defaultValue) const
 Read a string value.
virtual void writeString (const tstring &sectionName, const tstring &keyName, const tstring &value)
 Write a string value.
virtual void deleteSection (const tstring &sectionName)
 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 &)
RegistryCfgProvideroperator= (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.

Detailed Description

The config data provider that uses the Registry for storage.

The values are stored in the HKCU branch.


Constructor & Destructor Documentation

WCL::RegistryCfgProvider::RegistryCfgProvider ( const tstring &  publisher,
const tstring &  application 
)

Constructor.

Destructor.


Member Function Documentation

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]

Member Data Documentation

The name of the publisher.

The application name.

The config root key.

The config path.


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