14 FacSupervisor* FacSupervisor::_instance = NULL;
23 if (_instance == NULL) {
33 _bomPool.push_back (ioFacBomAbstract_ptr);
39 _svcPool.push_back (ioFacServiceAbstract_ptr);
44 _logger = ioLogger_ptr;
56 for (BomFactoryPool_T::const_iterator itFactory = _bomPool.begin();
57 itFactory != _bomPool.end(); itFactory++) {
59 assert (currentFactory_ptr != NULL);
61 delete (currentFactory_ptr); currentFactory_ptr = NULL;
70 for (ServiceFactoryPool_T::const_iterator itFactory = _svcPool.begin();
71 itFactory != _svcPool.end(); itFactory++) {
73 assert (currentFactory_ptr != NULL);
75 delete (currentFactory_ptr); currentFactory_ptr = NULL;
84 delete _logger; _logger = NULL;
89 if (_instance != NULL) {
94 delete (_instance); _instance = NULL;
static FacSupervisor & instance()
void registerServiceFactory(FacServiceAbstract *)
void cleanLoggerService()
void registerBomFactory(FacBomAbstract *)
static void cleanFactory()
void registerLoggerService(Logger *)