Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AnyConfig::AcWriteableConfig Class Reference

The base class for all configuration classes that allow updating. More...

#include <AnyConfig.h>

Inheritance diagram for AnyConfig::AcWriteableConfig::

AnyConfig::AcConfiguration AnyConfig::AcCorbaConfig AnyConfig::AcEnvConfig AnyConfig::AcFileConfig AnyConfig::AcMemConfig AnyConfig::AcMySQLConfig AnyConfig::AcBufFileConfig List of all members.

Public Methods

 AcWriteableConfig ()
 Constructor method. More...

virtual ~AcWriteableConfig ()
 Destructor method. More...

virtual void setLong (const char *pKey, const long value)
 Set the configuration item to the passed value. More...

virtual void setSectionStr (const char *pSection, const char *pKey, const char *pValue)
 Like setStr() but can set keys in another section than the current one. More...

virtual void setStr (const char *pKey, const char *pValue)=0

Private Methods

void ConstructorInclude ()
 Method which must be called first in a constructor. More...

void DestructorInclude ()
 Method which must be called first in a destructor. More...


Detailed Description

The base class for all configuration classes that allow updating.


Constructor & Destructor Documentation

AnyConfig::AcWriteableConfig::AcWriteableConfig ( )
 

Constructor method.

AnyConfig::AcWriteableConfig::~AcWriteableConfig ( ) [virtual]
 

Destructor method.


Member Function Documentation

void AnyConfig::AcWriteableConfig::ConstructorInclude ( ) [private]
 

Method which must be called first in a constructor.

Reimplemented from AnyConfig::AcConfiguration.

Reimplemented in AnyConfig::AcMemConfig, AnyConfig::AcBufFileConfig, AnyConfig::AcEnvConfig, AnyConfig::AcFileConfig, AnyConfig::AcMySQLConfig, and AnyConfig::AcCorbaConfig.

void AnyConfig::AcWriteableConfig::DestructorInclude ( ) [private]
 

Method which must be called first in a destructor.

Reimplemented from AnyConfig::AcConfiguration.

Reimplemented in AnyConfig::AcMemConfig, AnyConfig::AcBufFileConfig, AnyConfig::AcEnvConfig, AnyConfig::AcFileConfig, AnyConfig::AcMySQLConfig, and AnyConfig::AcCorbaConfig.

void AnyConfig::AcWriteableConfig::setLong ( const char * pKey,
const long value ) [virtual]
 

Set the configuration item to the passed value.

Parameters:
pKey   The item to set.
value   The value to set it to.

void AnyConfig::AcWriteableConfig::setSectionStr ( const char * pSection,
const char * pKey,
const char * pValue ) [virtual]
 

Like setStr() but can set keys in another section than the current one.

The default implementation just pushes _currentSection on stack, replaces it with the supplied section and calls the regular setStr() function.

Parameters:
pKey   The key to set.
pSection   The section to set it in.
pValue   The value to set it to.

Reimplemented in AnyConfig::AcMemConfig, AnyConfig::AcEnvConfig, and AnyConfig::AcMySQLConfig.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 11:34:19 2001 for AnyConfig by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001