StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
STDAIR_ServiceContext.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_SVC_STDAIRSERVICECONTEXT_HPP
2 #define __STDAIR_SVC_STDAIRSERVICECONTEXT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
15 
16 namespace stdair {
17 
19  class BomRoot;
20  class EventQueue;
21 
29  friend class STDAIR_Service;
31 
32  private:
33  // ///////// Getters //////////
37  BomRoot& getBomRoot() const;
38 
42  EventQueue& getEventQueue() const;
43 
47  const BasDBParams& getDBParams() const {
48  return _dbParams;
49  }
50 
54  const ServiceInitialisationType& getServiceInitialisationType() const {
55  return _initType;
56  }
57 
58 
59  private:
60  // ///////// Setters //////////
64  void setDBParams (const BasDBParams& iDBParams) {
65  _dbParams = iDBParams;
66  }
67 
71  void setServiceInitialisationType (const ServiceInitialisationType& iSIT) {
72  _initType = iSIT;
73  }
74 
75 
76  private:
77  // ///////// Display Methods //////////
81  const std::string shortDisplay() const;
82 
86  const std::string display() const;
87 
91  const std::string describe() const;
92 
93 
94  private:
95  // /////// Construction / initialisation ////////
99  STDAIR_ServiceContext();
100 
107  STDAIR_ServiceContext (const STDAIR_ServiceContext&);
108 
112  ~STDAIR_ServiceContext();
113 
121  void init();
122 
129  void initBomRoot();
130 
137  void initEventQueue();
138 
139 
140  private:
141  // ///////////// Children ////////////
145  BomRoot* _bomRoot;
146 
150  EventQueue* _eventQueue;
151 
155  BasDBParams _dbParams;
156 
170  ServiceInitialisationType _initType;
171  };
172 
173 }
174 #endif // __STDAIR_SVC_STDAIRSERVICECONTEXT_HPP