Octane v1.01.20 - The Open Compression Toolkit for C++ http://octane.sourceforge.net/
Homepage | Main | Modules | Class Hierarchy | Compound List | File List | Compound Members | Related Pages

CompressorManager_SingletonInsurer Class Reference

#include <compressormanager.hpp>

List of all members.


Detailed Description

This is a sneaky little class which allows us to create self-registering compressors.

The point of CompressorManager_SingletonInsurer is simply to insure that a singleton CompressorManager is initialized prior to any derived Compressor instantiations. It is instantiated by all objects prior on their construction.

Definition at line 111 of file compressormanager.hpp.

Public Member Functions

 CompressorManager_SingletonInsurer (OctaneCompressor *compressorp)
 the constructor creates our global singleton if appropriate, and then registers the passed compressor.


Constructor & Destructor Documentation

CompressorManager_SingletonInsurer::CompressorManager_SingletonInsurer OctaneCompressor compressorp  )  [inline]
 

the constructor creates our global singleton if appropriate, and then registers the passed compressor.

So called should just create and destroy a CompressorManager_SingletonInsurer in their constructor (using a local variable is fine)

Definition at line 118 of file compressormanager.hpp.

References global_compressormanagerp, and CompressorManager::RegisterBaseCompressor().


The documentation for this class was generated from the following file:  
Generated on 20 May 2004 by doxygen 1.3.3