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>
40 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
41 return _stdairService;
47 stdair::STDAIR_Service& getSTDAIR_Service()
const {
48 assert (_stdairService != NULL);
49 return *_stdairService;
55 const bool getOwnStdairServiceFlag()
const {
56 return _ownStdairService;
63 AIRINV_Service& getAIRINV_Service()
const {
64 assert (_airinvService != NULL);
65 return *_airinvService;
72 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
73 const bool iOwnStdairService) {
74 _stdairService = ioSTDAIR_ServicePtr;
75 _ownStdairService = iOwnStdairService;
82 _airinvService = ioAIRINV_ServicePtr;
91 const std::string shortDisplay()
const;
96 const std::string display()
const;
101 const std::string describe()
const;
109 AIRINV_Master_ServiceContext();
113 AIRINV_Master_ServiceContext (
const AIRINV_Master_ServiceContext&);
118 ~AIRINV_Master_ServiceContext();
131 stdair::STDAIR_ServicePtr_T _stdairService;
136 bool _ownStdairService;
148 #endif // __AIRINV_SVC_AIRINVMASTERSERVICECONTEXT_HPP