![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Channel compressors creation factory. More...
#include <mdsCompressorFactory.h>

Public Types | |
| enum | { CLASS_SINGLETON } |
| Templates that require members of the CSingleton class can use this enum to check the existence. More... | |
| enum | { LONGEVITY = L } |
| Object longevity. More... | |
| typedef mds::base::CFactory < CChannelCompressor, int > | tBase |
| Base class. | |
| typedef tObject *(* | tCreationFunction )() |
| Object creation function. | |
| typedef int | tIdentifier |
| Object identifier type. | |
| typedef CLibraryLockableClass < CFactory< CChannelCompressor, int > >::CLock | tLock |
| Lock type. | |
| typedef CChannelCompressor | tObject |
| Produced object type. | |
Public Member Functions | |
| tObject * | create (const tIdentifier &Id) |
| Creates a new object having the identifier 'Id'. | |
| bool | registerObject (const tIdentifier &Id, tCreationFunction Function) |
| Registers an object creation function. | |
| bool | unregisterObject (const tIdentifier &Id) |
| Unregisters the object creation function. | |
| ~CCompressorFactory () | |
| Destructor. | |
Static Public Member Functions | |
| static void | lock () |
| Locks the object. | |
| static void | unlock () |
| Locks the object. | |
Protected Types | |
| typedef std::map< tIdentifier, tCreationFunction > | tFunctions |
| Map of creation functions. | |
Protected Member Functions | |
| CCompressorFactory () | |
| Private constructor. | |
Protected Attributes | |
| tFunctions | m_Functions |
| Map of all registered creation functions. | |
Friends | |
| class | mds::base::CSingletonHolder< CCompressorFactory > |
| Allow factory instantiation using singleton holder. | |
| class | mds::base::CSingletonHolder< CFactory > |
| Allow factory instantiation using singleton holder. | |
Channel compressors creation factory.
Base class.
typedef tObject*(* mds::base::CFactory< CChannelCompressor , int >::tCreationFunction)() [inherited] |
Object creation function.
typedef std::map<tIdentifier, tCreationFunction> mds::base::CFactory< CChannelCompressor , int >::tFunctions [protected, inherited] |
Map of creation functions.
typedef int mds::base::CFactory< CChannelCompressor , int >::tIdentifier [inherited] |
Object identifier type.
typedef CLibraryLockableClass<CFactory<CChannelCompressor ,int > >::CLock mds::base::CFactory< CChannelCompressor , int >::tLock [inherited] |
Lock type.
typedef CChannelCompressor mds::base::CFactory< CChannelCompressor , int >::tObject [inherited] |
Produced object type.
anonymous enum [inherited] |
Templates that require members of the CSingleton class can use this enum to check the existence.
Destructor.
| mds::mod::CCompressorFactory::CCompressorFactory | ( | ) | [protected] |
Private constructor.
| tObject* mds::base::CFactory< CChannelCompressor , int >::create | ( | const tIdentifier & | Id | ) | [inherited] |
Creates a new object having the identifier 'Id'.
| static void mds::base::CLockableClass< T >::lock | ( | ) | [static, inherited] |
Locks the object.
| bool mds::base::CFactory< CChannelCompressor , int >::registerObject | ( | const tIdentifier & | Id, |
| tCreationFunction | Function | ||
| ) | [inherited] |
Registers an object creation function.
| static void mds::base::CLockableClass< T >::unlock | ( | ) | [static, inherited] |
Locks the object.
| bool mds::base::CFactory< CChannelCompressor , int >::unregisterObject | ( | const tIdentifier & | Id | ) | [inherited] |
Unregisters the object creation function.
friend class mds::base::CSingletonHolder< CCompressorFactory > [friend] |
Allow factory instantiation using singleton holder.
friend class mds::base::CSingletonHolder< CFactory > [friend, inherited] |
Allow factory instantiation using singleton holder.
tFunctions mds::base::CFactory< CChannelCompressor , int >::m_Functions [protected, inherited] |
Map of all registered creation functions.
1.7.6.1