1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
STDAIR_ServiceContext.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_SVC_STDAIRSERVICECONTEXT_HPP
2
#define __STDAIR_SVC_STDAIRSERVICECONTEXT_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
// StdAir
10
#include <
stdair/stdair_basic_types.hpp
>
11
#include <
stdair/basic/BasLogParams.hpp
>
12
#include <
stdair/basic/BasDBParams.hpp
>
13
#include <
stdair/bom/ConfigHolderStruct.hpp
>
14
#include <
stdair/basic/ServiceInitialisationType.hpp
>
15
#include <
stdair/service/ServiceAbstract.hpp
>
16
17
namespace
stdair
{
18
20
class
BomRoot
;
21
25
class
STDAIR_ServiceContext :
public
ServiceAbstract
{
29
friend
class
STDAIR_Service
;
30
friend
class
FacSTDAIRServiceContext
;
31
32
private
:
33
// ///////// Getters //////////
37
BomRoot
& getPersistentBomRoot()
const
;
38
42
BomRoot
& getCloneBomRoot()
const
;
43
47
ConfigHolderStruct
& getConfigHolder()
const
;
48
52
const
BasDBParams
& getDBParams()
const
{
53
return
_dbParams;
54
}
55
59
const
ServiceInitialisationType
& getServiceInitialisationType()
const
{
60
return
_initType;
61
}
62
63
64
private
:
65
// ///////// Setters //////////
69
void
setDBParams (
const
BasDBParams& iDBParams) {
70
_dbParams = iDBParams;
71
}
72
76
void
setServiceInitialisationType (
const
ServiceInitialisationType& iSIT) {
77
_initType = iSIT;
78
}
79
80
81
private
:
82
// ///////// Display Methods //////////
86
const
std::string shortDisplay()
const
;
87
91
const
std::string display()
const
;
92
96
const
std::string describe()
const
;
97
98
99
private
:
100
// /////// Construction / initialisation ////////
104
STDAIR_ServiceContext();
105
112
STDAIR_ServiceContext (
const
STDAIR_ServiceContext&);
113
117
~STDAIR_ServiceContext();
118
126
void
init();
127
134
void
initBomRoot();
135
142
void
initCloneBomRoot();
143
149
void
initConfigHolder();
150
151
private
:
152
// ///////////// Children ////////////
156
BomRoot* _cloneBomRoot;
157
161
BomRoot* _persistentBomRoot;
162
166
ConfigHolderPtr_T
_configHolderPtr;
167
171
BasDBParams _dbParams;
172
186
ServiceInitialisationType _initType;
187
};
188
189
}
190
#endif
// __STDAIR_SVC_STDAIRSERVICECONTEXT_HPP
BasDBParams.hpp
BasLogParams.hpp
ServiceInitialisationType.hpp
ConfigHolderStruct.hpp
ServiceAbstract.hpp
stdair_basic_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::ConfigHolderPtr_T
boost::shared_ptr< ConfigHolderStruct > ConfigHolderPtr_T
Definition
ConfigHolderTypes.hpp:20
stdair::BasDBParams
Structure holding the parameters for connection to a database.
Definition
BasDBParams.hpp:19
stdair::ServiceInitialisationType
Enumeration of service initialisation types.
Definition
ServiceInitialisationType.hpp:17
stdair::BomRoot
Class representing the actual attributes for the Bom root.
Definition
BomRoot.hpp:32
stdair::ConfigHolderStruct
Definition
ConfigHolderStruct.hpp:40
stdair::ServiceAbstract::ServiceAbstract
ServiceAbstract()
Definition
ServiceAbstract.hpp:46
stdair::STDAIR_ServiceContext::STDAIR_Service
friend class STDAIR_Service
Definition
STDAIR_ServiceContext.hpp:29
stdair::STDAIR_ServiceContext::FacSTDAIRServiceContext
friend class FacSTDAIRServiceContext
Definition
STDAIR_ServiceContext.hpp:30
Generated for StdAir by
1.17.0