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 <sevmgr/SEVMGR_Types.hpp>
18 #include <airinv/AIRINV_Types.hpp>
20 #include <airsched/AIRSCHED_Types.hpp>
22 #include <simfqt/SIMFQT_Types.hpp>
55 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
56 return _stdairService;
62 stdair::STDAIR_Service& getSTDAIR_Service()
const {
63 assert (_stdairService != NULL);
64 return *_stdairService;
70 const bool getOwnStdairServiceFlag()
const {
71 return _ownStdairService;
77 SEVMGR::SEVMGR_ServicePtr_T getSEVMGR_ServicePtr()
const {
78 return _sevmgrService;
84 SEVMGR::SEVMGR_Service& getSEVMGR_Service()
const {
85 assert (_sevmgrService != NULL);
86 return *_sevmgrService;
92 const bool getOwnSEVMGRServiceFlag()
const {
93 return _ownSEVMGRService;
99 AIRINV::AIRINV_Master_Service& getAIRINV_Service()
const {
100 assert (_airinvService != NULL);
101 return *_airinvService;
107 AIRSCHED::AIRSCHED_Service& getAIRSCHED_Service()
const {
108 assert (_airschedService != NULL);
109 return *_airschedService;
115 SIMFQT::SIMFQT_Service& getSIMFQT_Service()
const {
116 assert (_simfqtService != NULL);
117 return *_simfqtService;
126 void setCRSCode (
const CRSCode_T& iCRSCode) {
133 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
134 const bool iOwnStdairService) {
135 _stdairService = ioSTDAIR_ServicePtr;
136 _ownStdairService = iOwnStdairService;
142 void setSEVMGR_Service (SEVMGR::SEVMGR_ServicePtr_T ioSEVMGR_ServicePtr,
143 const bool iOwnSEVMGRService) {
144 _sevmgrService = ioSEVMGR_ServicePtr;
145 _ownSEVMGRService = iOwnSEVMGRService;
151 void setAIRINV_Service (AIRINV::AIRINV_Master_ServicePtr_T ioServicePtr) {
152 _airinvService = ioServicePtr;
158 void setAIRSCHED_Service (AIRSCHED::AIRSCHED_ServicePtr_T ioServicePtr) {
159 _airschedService = ioServicePtr;
165 void setSIMFQT_Service (SIMFQT::SIMFQT_ServicePtr_T ioServicePtr) {
166 _simfqtService = ioServicePtr;
175 const std::string shortDisplay()
const;
180 const std::string display()
const;
185 const std::string describe()
const;
193 SIMCRS_ServiceContext (
const CRSCode_T& iCRSCode);
197 SIMCRS_ServiceContext();
201 SIMCRS_ServiceContext (
const SIMCRS_ServiceContext&);
206 ~SIMCRS_ServiceContext();
218 stdair::STDAIR_ServicePtr_T _stdairService;
223 bool _ownStdairService;
228 SEVMGR::SEVMGR_ServicePtr_T _sevmgrService;
233 bool _ownSEVMGRService;
238 AIRSCHED::AIRSCHED_ServicePtr_T _airschedService;
243 AIRINV::AIRINV_Master_ServicePtr_T _airinvService;
248 SIMFQT::SIMFQT_ServicePtr_T _simfqtService;
262 #endif // __SIMCRS_SVC_SIMCRSSERVICECONTEXT_HPP