1 #ifndef __SIMCRS_SVC_SIMCRSSERVICECONTEXT_HPP
2 #define __SIMCRS_SVC_SIMCRSSERVICECONTEXT_HPP
11 #include <boost/shared_ptr.hpp>
13 #include <stdair/stdair_basic_types.hpp>
14 #include <stdair/stdair_service_types.hpp>
16 #include <airinv/AIRINV_Types.hpp>
18 #include <airsched/AIRSCHED_Types.hpp>
20 #include <simfqt/SIMFQT_Types.hpp>
53 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
54 return _stdairService;
60 stdair::STDAIR_Service& getSTDAIR_Service()
const {
61 assert (_stdairService != NULL);
62 return *_stdairService;
68 const bool getOwnStdairServiceFlag()
const {
69 return _ownStdairService;
75 AIRINV::AIRINV_Master_Service& getAIRINV_Service()
const {
76 assert (_airinvService != NULL);
77 return *_airinvService;
83 AIRSCHED::AIRSCHED_Service& getAIRSCHED_Service()
const {
84 assert (_airschedService != NULL);
85 return *_airschedService;
91 SIMFQT::SIMFQT_Service& getSIMFQT_Service()
const {
92 assert (_simfqtService != NULL);
93 return *_simfqtService;
102 void setCRSCode (
const CRSCode_T& iCRSCode) {
109 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
110 const bool iOwnStdairService) {
111 _stdairService = ioSTDAIR_ServicePtr;
112 _ownStdairService = iOwnStdairService;
118 void setAIRINV_Service (AIRINV::AIRINV_Master_ServicePtr_T ioServicePtr) {
119 _airinvService = ioServicePtr;
125 void setAIRSCHED_Service (AIRSCHED::AIRSCHED_ServicePtr_T ioServicePtr) {
126 _airschedService = ioServicePtr;
132 void setSIMFQT_Service (SIMFQT::SIMFQT_ServicePtr_T ioServicePtr) {
133 _simfqtService = ioServicePtr;
142 const std::string shortDisplay()
const;
147 const std::string display()
const;
152 const std::string describe()
const;
160 SIMCRS_ServiceContext (
const CRSCode_T& iCRSCode);
164 SIMCRS_ServiceContext();
168 SIMCRS_ServiceContext (
const SIMCRS_ServiceContext&);
173 ~SIMCRS_ServiceContext();
185 stdair::STDAIR_ServicePtr_T _stdairService;
190 bool _ownStdairService;
195 AIRSCHED::AIRSCHED_ServicePtr_T _airschedService;
200 AIRINV::AIRINV_Master_ServicePtr_T _airinvService;
205 SIMFQT::SIMFQT_ServicePtr_T _simfqtService;
219 #endif // __SIMCRS_SVC_SIMCRSSERVICECONTEXT_HPP