1 #ifndef __AIRINV_SVC_AIRINVMASTERSERVICECONTEXT_HPP
2 #define __AIRINV_SVC_AIRINVMASTERSERVICECONTEXT_HPP
10 #include <boost/shared_ptr.hpp>
12 #include <stdair/stdair_service_types.hpp>
13 #include <stdair/bom/Inventory.hpp>
14 #include <stdair/service/ServiceAbstract.hpp>
16 #include <sevmgr/SEVMGR_Types.hpp>
42 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
43 return _stdairService;
49 SEVMGR::SEVMGR_ServicePtr_T getSEVMGR_ServicePtr()
const {
50 return _sevmgrService;
56 stdair::STDAIR_Service& getSTDAIR_Service()
const {
57 assert (_stdairService != NULL);
58 return *_stdairService;
64 const bool getOwnStdairServiceFlag()
const {
65 return _ownStdairService;
71 const bool getOwnSEVMGRServiceFlag()
const {
72 return _ownSEVMGRService;
79 AIRINV_Service& getAIRINV_Service()
const {
80 assert (_airinvService != NULL);
81 return *_airinvService;
88 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
89 const bool iOwnStdairService) {
90 _stdairService = ioSTDAIR_ServicePtr;
91 _ownStdairService = iOwnStdairService;
97 void setSEVMGR_Service (SEVMGR::SEVMGR_ServicePtr_T ioSEVMGR_ServicePtr,
98 const bool iOwnSEVMGRService) {
99 _sevmgrService = ioSEVMGR_ServicePtr;
100 _ownSEVMGRService = iOwnSEVMGRService;
107 _airinvService = ioAIRINV_ServicePtr;
116 const std::string shortDisplay()
const;
121 const std::string display()
const;
126 const std::string describe()
const;
134 AIRINV_Master_ServiceContext();
138 AIRINV_Master_ServiceContext (
const AIRINV_Master_ServiceContext&);
143 ~AIRINV_Master_ServiceContext();
156 stdair::STDAIR_ServicePtr_T _stdairService;
161 bool _ownStdairService;
166 SEVMGR::SEVMGR_ServicePtr_T _sevmgrService;
171 bool _ownSEVMGRService;
183 #endif // __AIRINV_SVC_AIRINVMASTERSERVICECONTEXT_HPP