Octane v1.01.20 - The Open Compression Toolkit for C++ | http://octane.sourceforge.net/ |
#include <compressormanager.hpp>
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. |
|
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().
00118 {if (global_compressormanagerp==NULL) global_compressormanagerp= new CompressorManager();global_compressormanagerp->RegisterBaseCompressor(compressorp);}; |