Class representing the actual attributes for an airline segment data tables. More...
#include <stdair/bom/SegmentSnapshotTable.hpp>
Public Types | |
typedef SegmentSnapshotTableKey | Key_T |
Protected Member Functions | |
SegmentSnapshotTable (const Key_T &) | |
virtual | ~SegmentSnapshotTable () |
Friends | |
template<typename BOM > | |
class | FacBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for an airline segment data tables.
Definition at line 31 of file SegmentSnapshotTable.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 41 of file SegmentSnapshotTable.hpp.
|
protected |
Main constructor.
Definition at line 34 of file SegmentSnapshotTable.cpp.
|
protectedvirtual |
Destructor.
Definition at line 38 of file SegmentSnapshotTable.cpp.
|
inline |
Get the segment data table key.
Definition at line 47 of file SegmentSnapshotTable.hpp.
References _key.
|
inline |
|
inline |
Get the table ID (part of the primary key).
Definition at line 57 of file SegmentSnapshotTable.hpp.
References _key, and stdair::SegmentSnapshotTableKey::getTableID().
|
inline |
Get the map of children holders.
Definition at line 64 of file SegmentSnapshotTable.hpp.
References _holderMap.
|
inline |
Get the segment-cabin index map.
Definition at line 69 of file SegmentSnapshotTable.hpp.
References _segmentCabinIndexMap.
|
inline |
Get the class index map.
Definition at line 74 of file SegmentSnapshotTable.hpp.
References _classIndexMap.
const ClassIndex_T & stdair::SegmentSnapshotTable::getClassIndex | ( | const MapKey_T & | iKey | ) | const |
Get the index corresponding to the given class.
Definition at line 88 of file SegmentSnapshotTable.cpp.
References _classIndexMap.
const SegmentDataID_T & stdair::SegmentSnapshotTable::getSegmentDataID | ( | const SegmentCabin & | iSegmentCabin | ) | const |
Get the segment data ID corresponding to the givent segment-cabin.
Definition at line 97 of file SegmentSnapshotTable.cpp.
References _segmentCabinIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) | const |
Get the const view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 106 of file SegmentSnapshotTable.cpp.
References _bookingSnapshotBlock, and _classIndexMap.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) | const |
Get the const view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 119 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 130 of file SegmentSnapshotTable.cpp.
References _bookingSnapshotBlock, and _classIndexMap.
SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) |
Get the view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 142 of file SegmentSnapshotTable.cpp.
References _bookingSnapshotBlock, and _classIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDCancellationSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) | const |
Get the const view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 155 of file SegmentSnapshotTable.cpp.
References _cancellationSnapshotBlock, and _classIndexMap.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeCancellationSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) | const |
Get the const view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 168 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDCancellationSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 179 of file SegmentSnapshotTable.cpp.
References _cancellationSnapshotBlock, and _classIndexMap.
SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeCancellationSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) |
Get the view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 191 of file SegmentSnapshotTable.cpp.
References _cancellationSnapshotBlock, and _classIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) | const |
Get the const view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 204 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _productOrientedNetBookingSnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) | const |
Get the const view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 217 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDProductOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 228 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _productOrientedNetBookingSnapshotBlock.
SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) |
Get the view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 240 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _productOrientedNetBookingSnapshotBlock.
ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) | const |
Get the const view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 254 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _priceOrientedNetBookingSnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) | const |
Get the const view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 267 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDPriceOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 278 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _priceOrientedNetBookingSnapshotBlock.
SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) |
Get the view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 290 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _priceOrientedNetBookingSnapshotBlock.
ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) | const |
Get the const view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 303 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _productOrientedGrossBookingSnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) | const |
Get the const view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 316 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDProductOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 327 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _productOrientedGrossBookingSnapshotBlock.
SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) |
Get the view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 339 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _productOrientedGrossBookingSnapshotBlock.
ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) | const |
Get the const view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 353 of file SegmentSnapshotTable.cpp.
References _classIndexMap, and _priceOrientedGrossBookingSnapshotBlock.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) | const |
Get the const view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 366 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDPriceOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 378 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangePriceOrientedGrossBookingSnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) |
Get the view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 390 of file SegmentSnapshotTable.cpp.
ConstSegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDAvailabilitySnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) | const |
Get the const view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 402 of file SegmentSnapshotTable.cpp.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getConstSegmentCabinDTDRangeAvailabilitySnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) | const |
Get the const view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 414 of file SegmentSnapshotTable.cpp.
SegmentCabinDTDSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDAvailabilitySnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 425 of file SegmentSnapshotTable.cpp.
References _availabilitySnapshotBlock, and _classIndexMap.
SegmentCabinDTDRangeSnapshotView_T stdair::SegmentSnapshotTable::getSegmentCabinDTDRangeAvailabilitySnapshotView | ( | const SegmentDataID_T | iSCIdxBegin, |
const SegmentDataID_T | iSCIdxEnd, | ||
const DTD_T | iDTDBegin, | ||
const DTD_T | iDTDEnd | ||
) |
Get the view of snapshots for a given range of DTD and a range of segment-cabins.
Definition at line 437 of file SegmentSnapshotTable.cpp.
References _availabilitySnapshotBlock, and _classIndexMap.
void stdair::SegmentSnapshotTable::initSnapshotBlocks | ( | const SegmentCabinIndexMap_T & | iSegmentCabinIndexMap, |
const ClassIndexMap_T & | iClassIndexMap | ||
) |
Set the segment-cabin and value type index maps and initialise the snapshot blocks.
Definition at line 50 of file SegmentSnapshotTable.cpp.
References _availabilitySnapshotBlock, _bookingSnapshotBlock, _cancellationSnapshotBlock, _classIndexMap, _priceOrientedGrossBookingSnapshotBlock, _priceOrientedNetBookingSnapshotBlock, _productOrientedGrossBookingSnapshotBlock, _productOrientedNetBookingSnapshotBlock, _segmentCabinIndexMap, and stdair::DEFAULT_MAX_DTD.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 283 of file SegmentSnapshotTable.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 292 of file SegmentSnapshotTable.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 42 of file SegmentSnapshotTable.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 303 of file SegmentSnapshotTable.hpp.
References _key, and stdair::SegmentSnapshotTableKey::toString().
Referenced by toString().
void stdair::SegmentSnapshotTable::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
|
friend |
Definition at line 32 of file SegmentSnapshotTable.hpp.
|
friend |
Definition at line 33 of file SegmentSnapshotTable.hpp.
|
friend |
Definition at line 34 of file SegmentSnapshotTable.hpp.
|
protected |
Primary key (table ID and departure block).
Definition at line 352 of file SegmentSnapshotTable.hpp.
Referenced by describeKey(), getKey(), getTableID(), and serialize().
|
protected |
Pointer on the parent class (Inventory).
Definition at line 355 of file SegmentSnapshotTable.hpp.
Referenced by getParent().
|
protected |
Map holding the children.
Definition at line 358 of file SegmentSnapshotTable.hpp.
Referenced by getHolderMap().
|
protected |
Map holding the segment-cabin position within the snapshot blocks.
Definition at line 361 of file SegmentSnapshotTable.hpp.
Referenced by getSegmentCabinIndexMap(), getSegmentDataID(), and initSnapshotBlocks().
|
protected |
Map holding the value type (class, etc) within a a segment-cabin inside the snapshot blocks.
Definition at line 365 of file SegmentSnapshotTable.hpp.
Referenced by getClassIndex(), getClassIndexMap(), getConstSegmentCabinDTDBookingSnapshotView(), getConstSegmentCabinDTDCancellationSnapshotView(), getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView(), getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView(), getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView(), getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView(), getSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDPriceOrientedNetBookingSnapshotView(), getSegmentCabinDTDProductOrientedGrossBookingSnapshotView(), getSegmentCabinDTDProductOrientedNetBookingSnapshotView(), getSegmentCabinDTDRangeAvailabilitySnapshotView(), getSegmentCabinDTDRangeBookingSnapshotView(), getSegmentCabinDTDRangeCancellationSnapshotView(), getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView(), getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView(), getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Booking snapshot block.
Definition at line 368 of file SegmentSnapshotTable.hpp.
Referenced by getConstSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDRangeBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Cancellation snapshot block.
Definition at line 371 of file SegmentSnapshotTable.hpp.
Referenced by getConstSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDRangeCancellationSnapshotView(), and initSnapshotBlocks().
|
protected |
Product oriented net booking block.
Definition at line 374 of file SegmentSnapshotTable.hpp.
Referenced by getConstSegmentCabinDTDProductOrientedNetBookingSnapshotView(), getSegmentCabinDTDProductOrientedNetBookingSnapshotView(), getSegmentCabinDTDRangeProductOrientedNetBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Price oriented net booking block.
Definition at line 377 of file SegmentSnapshotTable.hpp.
Referenced by getConstSegmentCabinDTDPriceOrientedNetBookingSnapshotView(), getSegmentCabinDTDPriceOrientedNetBookingSnapshotView(), getSegmentCabinDTDRangePriceOrientedNetBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Product oriented gross booking block.
Definition at line 380 of file SegmentSnapshotTable.hpp.
Referenced by getConstSegmentCabinDTDProductOrientedGrossBookingSnapshotView(), getSegmentCabinDTDProductOrientedGrossBookingSnapshotView(), getSegmentCabinDTDRangeProductOrientedGrossBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Price oriented gross booking block.
Definition at line 383 of file SegmentSnapshotTable.hpp.
Referenced by getConstSegmentCabinDTDPriceOrientedGrossBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Availability block.
Definition at line 386 of file SegmentSnapshotTable.hpp.
Referenced by getSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDRangeAvailabilitySnapshotView(), and initSnapshotBlocks().