StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FacSupervisor.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_SVC_FACSUPERVISOR_HPP
2 #define __STDAIR_SVC_FACSUPERVISOR_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <list>
10 
11 namespace stdair {
12 
14  class FacAbstract;
15  class FacServiceAbstract;
16 
20  class FacSupervisor {
21  public:
25  typedef std::list<FacAbstract*> BomFactoryPool_T;
26  typedef std::list<FacServiceAbstract*> ServiceFactoryPool_T;
27 
34  static FacSupervisor& instance();
35 
44 
53 
60  void cleanBomLayer();
61 
68  void cleanServiceLayer();
69 
73  static void cleanLoggerService();
74 
78  static void cleanDBSessionManager();
79 
85  static void cleanAll();
86 
94 
95 
96  protected:
104 
105  private:
109  static FacSupervisor* _instance;
110 
114  BomFactoryPool_T _bomPool;
115 
119  ServiceFactoryPool_T _svcPool;
120  };
121 }
122 #endif // __STDAIR_SVC_FACSUPERVISOR_HPP