1 #ifndef __AIRINV_SVC_AIRINVSERVICECONTEXT_HPP
2 #define __AIRINV_SVC_AIRINVSERVICECONTEXT_HPP
10 #include <boost/shared_ptr.hpp>
12 #include <stdair/stdair_service_types.hpp>
13 #include <stdair/service/ServiceAbstract.hpp>
15 #include <rmol/RMOL_Types.hpp>
17 #include <airrac/AIRRAC_Types.hpp>
40 stdair::AirlineCode_T getAirlineCode()
const {
47 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
48 return _stdairService;
54 stdair::STDAIR_Service& getSTDAIR_Service()
const {
55 assert (_stdairService != NULL);
56 return *_stdairService;
62 const bool getOwnStdairServiceFlag()
const {
63 return _ownStdairService;
69 RMOL::RMOL_Service& getRMOL_Service()
const {
70 assert (_rmolService != NULL);
77 AIRRAC::AIRRAC_Service& getAIRRAC_Service()
const {
78 assert (_airracService != NULL);
79 return *_airracService;
88 void setAirlineCode (
const stdair::AirlineCode_T& iAirlineCode) {
89 _airlineCode = iAirlineCode;
95 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
96 const bool iOwnStdairService) {
97 _stdairService = ioSTDAIR_ServicePtr;
98 _ownStdairService = iOwnStdairService;
104 void setRMOL_Service (RMOL::RMOL_ServicePtr_T ioRMOL_ServicePtr) {
105 _rmolService = ioRMOL_ServicePtr;
111 void setAIRRAC_Service (AIRRAC::AIRRAC_ServicePtr_T ioAIRRAC_ServicePtr) {
112 _airracService = ioAIRRAC_ServicePtr;
121 const std::string shortDisplay()
const;
126 const std::string display()
const;
131 const std::string describe()
const;
139 AIRINV_ServiceContext (
const stdair::AirlineCode_T&);
143 AIRINV_ServiceContext();
147 AIRINV_ServiceContext (
const AIRINV_ServiceContext&);
152 ~AIRINV_ServiceContext();
165 stdair::STDAIR_ServicePtr_T _stdairService;
170 bool _ownStdairService;
175 RMOL::RMOL_ServicePtr_T _rmolService;
180 AIRRAC::AIRRAC_ServicePtr_T _airracService;
188 stdair::AirlineCode_T _airlineCode;
192 #endif // __AIRINV_SVC_AIRINVSERVICECONTEXT_HPP