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> 
   19 #include <sevmgr/SEVMGR_Types.hpp> 
   42     stdair::AirlineCode_T getAirlineCode()
 const {
 
   49     stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
 const {
 
   50       return _stdairService;
 
   56     stdair::STDAIR_Service& getSTDAIR_Service()
 const {
 
   57       assert (_stdairService != NULL);
 
   58       return *_stdairService;
 
   64     const bool getOwnStdairServiceFlag()
 const {
 
   65       return _ownStdairService;
 
   71     RMOL::RMOL_Service& getRMOL_Service()
 const {
 
   72       assert (_rmolService != NULL);
 
   79     AIRRAC::AIRRAC_Service& getAIRRAC_Service()
 const {
 
   80       assert (_airracService != NULL);
 
   81       return *_airracService;
 
   87     SEVMGR::SEVMGR_ServicePtr_T getSEVMGR_ServicePtr()
 const {
 
   88       return _sevmgrService;
 
   94     SEVMGR::SEVMGR_Service& getSEVMGR_Service()
 const {
 
   95       assert (_sevmgrService != NULL);
 
   96       return *_sevmgrService;
 
  102     const bool getOwnSEVMGRServiceFlag()
 const {
 
  103       return _ownSEVMGRService;
 
  112     void setAirlineCode (
const stdair::AirlineCode_T& iAirlineCode) {
 
  113       _airlineCode = iAirlineCode;
 
  119     void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
 
  120                             const bool iOwnStdairService) {
 
  121       _stdairService = ioSTDAIR_ServicePtr;
 
  122       _ownStdairService = iOwnStdairService;
 
  128     void setRMOL_Service (RMOL::RMOL_ServicePtr_T ioRMOL_ServicePtr) {
 
  129       _rmolService = ioRMOL_ServicePtr;
 
  135     void setAIRRAC_Service (AIRRAC::AIRRAC_ServicePtr_T ioAIRRAC_ServicePtr) {
 
  136       _airracService = ioAIRRAC_ServicePtr;
 
  142     void setSEVMGR_Service (SEVMGR::SEVMGR_ServicePtr_T ioSEVMGR_ServicePtr,
 
  143                             const bool iOwnSEVMGRService) {
 
  144       _sevmgrService = ioSEVMGR_ServicePtr; 
 
  145       _ownSEVMGRService = iOwnSEVMGRService;
 
  153     const std::string shortDisplay() 
const;
 
  158     const std::string display() 
const;
 
  163     const std::string describe() 
const;
 
  171     AIRINV_ServiceContext (
const stdair::AirlineCode_T&);
 
  175     AIRINV_ServiceContext();
 
  179     AIRINV_ServiceContext (
const AIRINV_ServiceContext&);
 
  184     ~AIRINV_ServiceContext();
 
  197     stdair::STDAIR_ServicePtr_T _stdairService;
 
  202     bool _ownStdairService;
 
  207     RMOL::RMOL_ServicePtr_T _rmolService;
 
  212     SEVMGR::SEVMGR_ServicePtr_T _sevmgrService; 
 
  217     bool _ownSEVMGRService;
 
  222     AIRRAC::AIRRAC_ServicePtr_T _airracService;
 
  230     stdair::AirlineCode_T _airlineCode;
 
  234 #endif // __AIRINV_SVC_AIRINVSERVICECONTEXT_HPP