1 #ifndef __TRAVELCCM_SVC_TRAVELCCM_SERVICE_CONTEXT_HPP
2 #define __TRAVELCCM_SVC_TRAVELCCM_SERVICE_CONTEXT_HPP
10 #include <boost/shared_ptr.hpp>
12 #include <stdair/stdair_service_types.hpp>
13 #include <stdair/service/ServiceAbstract.hpp>
37 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
38 return _stdairService;
44 stdair::STDAIR_Service& getSTDAIR_Service()
const {
45 assert (_stdairService != NULL);
46 return *_stdairService;
52 const bool getOwnStdairServiceFlag()
const {
53 return _ownStdairService;
61 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
62 const bool iOwnStdairService) {
63 _stdairService = ioSTDAIR_ServicePtr;
64 _ownStdairService = iOwnStdairService;
73 const std::string shortDisplay()
const;
78 const std::string display()
const;
83 const std::string describe()
const;
91 TRAVELCCM_ServiceContext();
95 TRAVELCCM_ServiceContext (
const TRAVELCCM_ServiceContext&);
100 ~TRAVELCCM_ServiceContext();
113 stdair::STDAIR_ServicePtr_T _stdairService;
118 bool _ownStdairService;
122 #endif // __TRAVELCCM_SVC_TRAVELCCM_SERVICE_CONTEXT_HPP