1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SegmentSnapshotTable.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_SEGMENTSNAPSHOTTABLE_HPP
2
#define __STDAIR_BOM_SEGMENTSNAPSHOTTABLE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
// StdAir
11
#include <
stdair/stdair_inventory_types.hpp
>
12
#include <
stdair/bom/BomAbstract.hpp
>
13
#include <
stdair/bom/SegmentSnapshotTableKey.hpp
>
14
#include <
stdair/bom/SegmentSnapshotTableTypes.hpp
>
15
17
namespace
boost {
18
namespace
serialization {
19
class
access;
20
}
21
}
22
23
namespace
stdair {
24
// Forward declarations
25
class
SegmentCabin;
26
31
class
SegmentSnapshotTable
:
public
BomAbstract
{
32
template
<
typename
BOM>
friend
class
FacBom
;
33
friend
class
FacBomManager
;
34
friend
class
boost::serialization::access
;
35
36
public
:
37
// ////////// Type definitions ////////////
41
typedef
SegmentSnapshotTableKey
Key_T
;
42
43
44
public
:
45
// /////////// Getters ///////////////
47
const
Key_T
&
getKey
()
const
{
48
return
_key
;
49
}
50
52
BomAbstract
*
const
getParent
()
const
{
53
return
_parent
;
54
}
55
57
const
TableID_T
&
getTableID
()
const
{
58
return
_key
.
getTableID
();
59
}
60
64
const
HolderMap_T
&
getHolderMap
()
const
{
65
return
_holderMap
;
66
}
67
69
const
SegmentCabinIndexMap_T
&
getSegmentCabinIndexMap
()
const
{
70
return
_segmentCabinIndexMap
;
71
}
72
74
const
ClassIndexMap_T
&
getClassIndexMap
()
const
{
75
return
_classIndexMap
;
76
}
77
79
const
ClassIndex_T
&
getClassIndex
(
const
MapKey_T
&)
const
;
80
82
const
SegmentDataID_T
&
getSegmentDataID
(
const
SegmentCabin
&)
const
;
83
86
ConstSegmentCabinDTDSnapshotView_T
87
getConstSegmentCabinDTDBookingSnapshotView
(
const
SegmentDataID_T
,
88
const
SegmentDataID_T
,
89
const
DTD_T
)
const
;
90
93
ConstSegmentCabinDTDRangeSnapshotView_T
94
getConstSegmentCabinDTDRangeBookingSnapshotView
(
const
SegmentDataID_T
,
95
const
SegmentDataID_T
,
96
const
DTD_T
,
97
const
DTD_T
)
const
;
98
101
SegmentCabinDTDSnapshotView_T
102
getSegmentCabinDTDBookingSnapshotView
(
const
SegmentDataID_T
,
103
const
SegmentDataID_T
,
const
DTD_T
);
104
107
SegmentCabinDTDRangeSnapshotView_T
108
getSegmentCabinDTDRangeBookingSnapshotView
(
const
SegmentDataID_T
,
109
const
SegmentDataID_T
,
110
const
DTD_T
,
const
DTD_T
);
111
114
ConstSegmentCabinDTDSnapshotView_T
115
getConstSegmentCabinDTDCancellationSnapshotView
(
const
SegmentDataID_T
,
116
const
SegmentDataID_T
,
117
const
DTD_T
)
const
;
118
121
ConstSegmentCabinDTDRangeSnapshotView_T
122
getConstSegmentCabinDTDRangeCancellationSnapshotView
(
const
SegmentDataID_T
,
123
const
SegmentDataID_T
,
124
const
DTD_T
,
125
const
DTD_T
)
const
;
126
129
SegmentCabinDTDSnapshotView_T
130
getSegmentCabinDTDCancellationSnapshotView
(
const
SegmentDataID_T
,
131
const
SegmentDataID_T
,
132
const
DTD_T
);
133
136
SegmentCabinDTDRangeSnapshotView_T
137
getSegmentCabinDTDRangeCancellationSnapshotView
(
const
SegmentDataID_T
,
138
const
SegmentDataID_T
,
139
const
DTD_T
,
const
DTD_T
);
140
143
ConstSegmentCabinDTDSnapshotView_T
144
getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView
145
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
)
const
;
146
149
ConstSegmentCabinDTDRangeSnapshotView_T
150
getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView
151
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
)
const
;
152
155
SegmentCabinDTDSnapshotView_T
156
getSegmentCabinDTDProductOrientedNetBookingSnapshotView
157
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
);
158
161
SegmentCabinDTDRangeSnapshotView_T
162
getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView
163
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
);
164
167
ConstSegmentCabinDTDSnapshotView_T
168
getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView
169
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
)
const
;
170
173
ConstSegmentCabinDTDRangeSnapshotView_T
174
getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView
175
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
)
const
;
176
179
SegmentCabinDTDSnapshotView_T
180
getSegmentCabinDTDPriceOrientedNetBookingSnapshotView
181
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
);
182
185
SegmentCabinDTDRangeSnapshotView_T
186
getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView
187
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
);
188
189
192
ConstSegmentCabinDTDSnapshotView_T
193
getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView
194
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
)
const
;
195
198
ConstSegmentCabinDTDRangeSnapshotView_T
199
getConstSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView
200
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
)
const
;
201
204
SegmentCabinDTDSnapshotView_T
205
getSegmentCabinDTDProductOrientedGrossBookingSnapshotView
206
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
);
207
210
SegmentCabinDTDRangeSnapshotView_T
211
getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView
212
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
);
213
216
ConstSegmentCabinDTDSnapshotView_T
217
getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView
218
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
)
const
;
219
222
ConstSegmentCabinDTDRangeSnapshotView_T
223
getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView
224
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
)
const
;
225
228
SegmentCabinDTDSnapshotView_T
229
getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView
230
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
);
231
234
SegmentCabinDTDRangeSnapshotView_T
235
getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView
236
(
const
SegmentDataID_T
,
const
SegmentDataID_T
,
const
DTD_T
,
const
DTD_T
);
237
238
241
ConstSegmentCabinDTDSnapshotView_T
242
getConstSegmentCabinDTDAvailabilitySnapshotView
(
const
SegmentDataID_T
,
243
const
SegmentDataID_T
,
244
const
DTD_T
)
const
;
245
248
ConstSegmentCabinDTDRangeSnapshotView_T
249
getConstSegmentCabinDTDRangeAvailabilitySnapshotView
(
const
SegmentDataID_T
,
250
const
SegmentDataID_T
,
251
const
DTD_T
,
252
const
DTD_T
)
const
;
253
256
SegmentCabinDTDSnapshotView_T
257
getSegmentCabinDTDAvailabilitySnapshotView
(
const
SegmentDataID_T
,
258
const
SegmentDataID_T
,
259
const
DTD_T
);
260
263
SegmentCabinDTDRangeSnapshotView_T
264
getSegmentCabinDTDRangeAvailabilitySnapshotView
(
const
SegmentDataID_T
,
265
const
SegmentDataID_T
,
266
const
DTD_T
,
const
DTD_T
);
267
268
269
public
:
270
// //////////// Setters /////////////
273
void
initSnapshotBlocks
(
const
SegmentCabinIndexMap_T
&,
274
const
ClassIndexMap_T
&);
275
276
public
:
277
// /////////// Display support methods /////////
283
void
toStream
(std::ostream& ioOut)
const
{
284
ioOut <<
toString
();
285
}
286
292
void
fromStream
(std::istream& ioIn) {
293
}
294
298
std::string
toString
()
const
;
299
303
const
std::string
describeKey
()
const
{
304
return
_key
.
toString
();
305
}
306
307
308
public
:
309
// /////////// (Boost) Serialisation support methods /////////
313
template
<
class
Archive>
314
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
315
316
private
:
321
void
serialisationImplementationExport()
const
;
322
void
serialisationImplementationImport();
323
324
325
protected
:
326
// ////////// Constructors and destructors /////////
330
SegmentSnapshotTable
(
const
Key_T
&);
331
335
virtual
~SegmentSnapshotTable
();
336
337
private
:
341
SegmentSnapshotTable
();
342
346
SegmentSnapshotTable
(
const
SegmentSnapshotTable
&);
347
348
349
protected
:
350
// ////////// Attributes /////////
352
Key_T
_key
;
353
355
BomAbstract
*
_parent
;
356
358
HolderMap_T
_holderMap
;
359
361
SegmentCabinIndexMap_T
_segmentCabinIndexMap
;
362
365
ClassIndexMap_T
_classIndexMap
;
366
368
SnapshotBlock_T
_bookingSnapshotBlock
;
369
371
SnapshotBlock_T
_cancellationSnapshotBlock
;
372
374
SnapshotBlock_T
_productOrientedNetBookingSnapshotBlock
;
375
377
SnapshotBlock_T
_priceOrientedNetBookingSnapshotBlock
;
378
380
SnapshotBlock_T
_productOrientedGrossBookingSnapshotBlock
;
381
383
SnapshotBlock_T
_priceOrientedGrossBookingSnapshotBlock
;
384
386
SnapshotBlock_T
_availabilitySnapshotBlock
;
387
};
388
389
}
390
#endif // __STDAIR_BOM_SEGMENTSNAPSHOTTABLE_HPP
391
Generated on Sat Dec 22 2012 16:51:54 for StdAir by
1.8.1.1