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

AnyConfig::AcAutoDelete Class Reference

A mini-class to auto-release AcConfiguration pointers. More...

#include <AnyConfig.h>

List of all members.

Public Methods

 AcAutoDelete (AcConfiguration *pConfiguration)
 Constructor method. More...

virtual ~AcAutoDelete ()
 Destructor method. 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

AcConfiguration_pConfiguration


Detailed Description

A mini-class to auto-release AcConfiguration pointers.


Constructor & Destructor Documentation

AnyConfig::AcAutoDelete::AcAutoDelete ( AcConfiguration * pConfiguration )
 

Constructor method.

This class can be used to auto-cleanup Configuration pointers. Just pass the return value of any of the Configuration allocators to the constructor of this class on stack. When you function returns, the pointer will be automatically released.

Parameters:
pConfiguration   Will be deleted if this class goes out of scope.

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

Destructor method.


Member Function Documentation

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

Method which must be called first in a constructor.

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

Method which must be called first in a destructor.


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