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

AnyConfig::AcBufFileConfig Class Reference

A merge of the AcMemConfig and AcFileConfig classes. More...

#include <AnyConfig.h>

Inheritance diagram for AnyConfig::AcBufFileConfig::

AnyConfig::AcMemConfig AnyConfig::AcWriteableConfig AnyConfig::AcConfiguration List of all members.

Public Methods

 AcBufFileConfig ()
 Constructor method. More...

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

virtual void display ()
 Mostly for debugging purposes, display the configuration. More...

virtual bool initialize (AcConfiguration &parentConfig)
 Initialize the configuration using another, probably more primitive, parent configuration. More...

virtual bool initialize (FILE *pF)
 Hack to read from for instance stdin. More...

virtual bool initRequired ()
 Returns true if the derived AcConfiguration requires to be initialized. More...

virtual void save ()
 Write the buffered configuration to the file. More...

const CString& GetCfgFileName () const
 Returns the value of member '_cfgFileName'. More...

void SetCfgFileName (const CString &rCfgFileName)
 Set the value of member '_cfgFileName' to 'rCfgFileName'. More...


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...


Private Attributes

CString _cfgFileName

Detailed Description

A merge of the AcMemConfig and AcFileConfig classes.


Constructor & Destructor Documentation

AnyConfig::AcBufFileConfig::AcBufFileConfig ( )
 

Constructor method.

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

Destructor method.


Member Function Documentation

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

Method which must be called first in a constructor.

Reimplemented from AnyConfig::AcMemConfig.

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

Method which must be called first in a destructor.

Reimplemented from AnyConfig::AcMemConfig.

const CString & AnyConfig::AcBufFileConfig::GetCfgFileName ( ) const [inline]
 

Returns the value of member '_cfgFileName'.

void AnyConfig::AcBufFileConfig::SetCfgFileName ( const CString & rCfgFileName ) [inline]
 

Set the value of member '_cfgFileName' to 'rCfgFileName'.

void AnyConfig::AcBufFileConfig::display ( ) [virtual]
 

Mostly for debugging purposes, display the configuration.

Reimplemented from AnyConfig::AcMemConfig.

bool AnyConfig::AcBufFileConfig::initRequired ( ) [virtual]
 

Returns true if the derived AcConfiguration requires to be initialized.

See the initialize() function for the various derived classes for more details. Note that this function must return false once the initialization has been done once.

Reimplemented from AnyConfig::AcMemConfig.

bool AnyConfig::AcBufFileConfig::initialize ( FILE * pF ) [virtual]
 

Hack to read from for instance stdin.

Parameters:
pF   Opened and positioned FILE pointer.

bool AnyConfig::AcBufFileConfig::initialize ( AcConfiguration & parentConfig ) [virtual]
 

Initialize the configuration using another, probably more primitive, parent configuration.

The default implementation of this method just returns true.

Parameters:
parentConfig   The parent configuration to use.
Returns:
False if the initialization failed.

Reimplemented from AnyConfig::AcConfiguration.

void AnyConfig::AcBufFileConfig::save ( ) [virtual]
 

Write the buffered configuration to the file.


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