1.00.3
C++ Simulated Revenue Accounting (RAC) System Library
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
13
#include <
airrac/AIRRAC_Types.hpp
>
14
16
namespace
stdair
{
17
class
STDAIR_Service;
18
}
19
20
namespace
AIRRAC
{
21
25
class
AIRRAC_ServiceContext
:
public
stdair::ServiceAbstract {
31
friend
class
AIRRAC_Service
;
32
friend
class
FacAirracServiceContext
;
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
AIRRAC::FacAirracServiceContext
Factory for the service context.
Definition:
FacAirracServiceContext.hpp:21
AIRRAC::AIRRAC_Service
Interface for the AIRRAC Services.
Definition:
AIRRAC_Service.hpp:30
AIRRAC_Types.hpp
stdair
Forward declarations.
Definition:
AIRRAC_Service.hpp:15
AIRRAC
Definition:
AIRRAC_Service.hpp:22
AIRRAC::AIRRAC_ServiceContext
Inner class holding the context for the AIRRAC Service object.
Definition:
AIRRAC_ServiceContext.hpp:25
Generated on Tue Jan 28 2020 00:00:00 for AirRAC by
1.8.17