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

The config data provider that uses an .ini file for storage. More...

#include <IniFileCfgProvider.hpp>

Inheritance diagram for WCL::IniFileCfgProvider:
WCL::IConfigProvider

List of all members.

Public Member Functions

 IniFileCfgProvider (const tstring &publisher, const tstring &application)
 Constructor.
virtual ~IniFileCfgProvider ()
 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 ()
 Check if there is a config file already.
static void removeConfig ()
 Remove the config information.

Private Attributes

tstring m_publisher
 The name of the publisher.
tstring m_application
 The application name.
CIniFile m_iniFile
 The underlying storage.

Detailed Description

The config data provider that uses an .ini file for storage.

The .ini file resides in the application folder.


Constructor & Destructor Documentation

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

Constructor.

Destructor.


Member Function Documentation

Check if there is a config file already.

Remove the config information.

tstring WCL::IniFileCfgProvider::readString ( const tstring &  sectionName,
const tstring &  keyName,
const tstring &  defaultValue 
) const [virtual]

Read a string value.

Implements WCL::IConfigProvider.

void WCL::IniFileCfgProvider::writeString ( const tstring &  sectionName,
const tstring &  keyName,
const tstring &  value 
) [virtual]

Write a string value.

Implements WCL::IConfigProvider.

void WCL::IniFileCfgProvider::deleteSection ( const tstring &  sectionName) [virtual]

Delete the entire section.

Implements WCL::IConfigProvider.


Member Data Documentation

The name of the publisher.

The application name.

The underlying storage.


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