AirRAC Logo  1.00.8
C++ Simulated Revenue Accounting (RAC) System Library
Loading...
Searching...
No Matches
AIRRAC_ServiceContext.hpp
Go to the documentation of this file.
1#ifndef __AIRRAC_SVC_AIRRACSERVICECONTEXT_HPP
2#define __AIRRAC_SVC_AIRRACSERVICECONTEXT_HPP
3
4// //////////////////////////////////////////////////////////////////////
5// Import section
6// //////////////////////////////////////////////////////////////////////
7// STL
8#include <string>
9// StdAir
10#include <stdair/stdair_service_types.hpp>
11#include <stdair/service/ServiceAbstract.hpp>
12// Airrac
14
16namespace stdair {
17 class STDAIR_Service;
18}
19
20namespace AIRRAC {
21
25 class AIRRAC_ServiceContext : public stdair::ServiceAbstract {
31 friend class AIRRAC_Service;
33
34 private:
35 // ///////// Getters //////////
39 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr() const {
40 return _stdairService;
41 }
42
46 stdair::STDAIR_Service& getSTDAIR_Service() const {
47 assert (_stdairService != NULL);
48 return *_stdairService;
49 }
50
54 const bool getOwnStdairServiceFlag() const {
55 return _ownStdairService;
56 }
57
58
59 private:
60 // ///////////////// Setters ///////////////////
64 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
65 const bool iOwnStdairService) {
66 _stdairService = ioSTDAIR_ServicePtr;
67 _ownStdairService = iOwnStdairService;
68 }
69
70
71 private:
72 // ///////// Display Methods //////////
76 const std::string shortDisplay() const;
77
81 const std::string display() const;
82
86 const std::string describe() const;
87
88
89 private:
90 // /////// Construction / initialisation ////////
94 AIRRAC_ServiceContext();
95
99 AIRRAC_ServiceContext (const AIRRAC_ServiceContext&);
100
104 ~AIRRAC_ServiceContext();
105
109 void reset();
110
111
112 private:
113 // //////////// Attributes //////////////////
117 stdair::STDAIR_ServicePtr_T _stdairService;
118
122 bool _ownStdairService;
123 };
124
125}
126#endif // __AIRRAC_SVC_AIRRACSERVICECONTEXT_HPP
Forward declarations.