Class representing the actual attributes for an airline guillotine-block. More...
#include <stdair/bom/GuillotineBlock.hpp>
Public Types | |
typedef GuillotineBlockKey | Key_T |
Protected Member Functions | |
GuillotineBlock (const Key_T &) | |
virtual | ~GuillotineBlock () |
Friends | |
class | FacBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for an airline guillotine-block.
Definition at line 31 of file GuillotineBlock.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 41 of file GuillotineBlock.hpp.
|
protected |
Main constructor.
Definition at line 34 of file GuillotineBlock.cpp.
|
protectedvirtual |
Destructor.
Definition at line 38 of file GuillotineBlock.cpp.
|
inline |
|
inline |
|
inline |
Get the guillotine number (part of the primary key).
Definition at line 57 of file GuillotineBlock.hpp.
References _key, and stdair::GuillotineBlockKey::getGuillotineNumber().
|
inline |
Get the map of children holders.
Definition at line 64 of file GuillotineBlock.hpp.
References _holderMap.
|
inline |
Get the segment-cabin index map.
Definition at line 69 of file GuillotineBlock.hpp.
References _segmentCabinIndexMap.
|
inline |
Get the value type index map.
Definition at line 74 of file GuillotineBlock.hpp.
References _valueTypesIndexMap.
const BlockIndex_T & stdair::GuillotineBlock::getBlockIndex | ( | const MapKey_T & | iKey | ) | const |
Get the block index corresponding to the given value type.
Definition at line 79 of file GuillotineBlock.cpp.
References _valueTypesIndexMap.
const BlockNumber_T & stdair::GuillotineBlock::getBlockNumber | ( | const SegmentCabin & | iSegmentCabin | ) | const |
Get the block number corresponding to the givent segment-cabin.
Definition at line 88 of file GuillotineBlock.cpp.
References _segmentCabinIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 97 of file GuillotineBlock.cpp.
References _bookingSnapshotBlock, and _valueTypesIndexMap.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 110 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 121 of file GuillotineBlock.cpp.
References _bookingSnapshotBlock, and _valueTypesIndexMap.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 133 of file GuillotineBlock.cpp.
References _bookingSnapshotBlock, and _valueTypesIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 146 of file GuillotineBlock.cpp.
References _cancellationSnapshotBlock, and _valueTypesIndexMap.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 159 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 170 of file GuillotineBlock.cpp.
References _cancellationSnapshotBlock, and _valueTypesIndexMap.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeCancellationSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 182 of file GuillotineBlock.cpp.
References _cancellationSnapshotBlock, and _valueTypesIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 195 of file GuillotineBlock.cpp.
References _productAndPriceOrientedBookingSnapshotBlock, and _valueTypesIndexMap.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 208 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 219 of file GuillotineBlock.cpp.
References _productAndPriceOrientedBookingSnapshotBlock, and _valueTypesIndexMap.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 231 of file GuillotineBlock.cpp.
References _productAndPriceOrientedBookingSnapshotBlock, and _valueTypesIndexMap.
ConstSegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 244 of file GuillotineBlock.cpp.
References _availabilitySnapshotBlock, and _valueTypesIndexMap.
ConstSegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getConstSegmentCabinDTDRangeAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 257 of file GuillotineBlock.cpp.
SegmentCabinDTDSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_T | iSCIdxEnd, | ||
const DTD_T | iDTD | ||
) |
Get the view of snapshots for a given DTD and a range of segment-cabins.
Definition at line 268 of file GuillotineBlock.cpp.
References _availabilitySnapshotBlock, and _valueTypesIndexMap.
SegmentCabinDTDRangeSnapshotView_T stdair::GuillotineBlock::getSegmentCabinDTDRangeAvailabilitySnapshotView | ( | const BlockNumber_T | iSCIdxBegin, |
const BlockNumber_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 280 of file GuillotineBlock.cpp.
References _availabilitySnapshotBlock, and _valueTypesIndexMap.
void stdair::GuillotineBlock::initSnapshotBlocks | ( | const SegmentCabinIndexMap_T & | iSegmentCabinIndexMap, |
const ValueTypeIndexMap_T & | iValueTypeIndexMap | ||
) |
Set the segment-cabin and value type index maps and initialise the snapshot blocks.
Definition at line 50 of file GuillotineBlock.cpp.
References _availabilitySnapshotBlock, _bookingSnapshotBlock, _cancellationSnapshotBlock, _productAndPriceOrientedBookingSnapshotBlock, _segmentCabinIndexMap, _valueTypesIndexMap, and stdair::DEFAULT_MAX_DTD.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 209 of file GuillotineBlock.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 218 of file GuillotineBlock.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 42 of file GuillotineBlock.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 229 of file GuillotineBlock.hpp.
References _key, and stdair::GuillotineBlockKey::toString().
Referenced by toString().
void stdair::GuillotineBlock::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
|
friend |
Definition at line 32 of file GuillotineBlock.hpp.
|
friend |
Definition at line 33 of file GuillotineBlock.hpp.
|
friend |
Definition at line 34 of file GuillotineBlock.hpp.
|
protected |
Primary key (guillotine number and departure block).
Definition at line 278 of file GuillotineBlock.hpp.
Referenced by describeKey(), getGuillotineNumber(), getKey(), and serialize().
|
protected |
Pointer on the parent class (Inventory).
Definition at line 281 of file GuillotineBlock.hpp.
Referenced by getParent().
|
protected |
Map holding the children.
Definition at line 284 of file GuillotineBlock.hpp.
Referenced by getHolderMap().
|
protected |
Map holding the segment-cabin position within the snapshot blocks.
Definition at line 287 of file GuillotineBlock.hpp.
Referenced by getBlockNumber(), getSegmentCabinIndexMap(), and initSnapshotBlocks().
|
protected |
Map holding the value type (class, Q-equivalent, etc) within a a segment-cabin inside the snapshot blocks.
Definition at line 291 of file GuillotineBlock.hpp.
Referenced by getBlockIndex(), getConstSegmentCabinDTDAvailabilitySnapshotView(), getConstSegmentCabinDTDBookingSnapshotView(), getConstSegmentCabinDTDCancellationSnapshotView(), getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDRangeAvailabilitySnapshotView(), getSegmentCabinDTDRangeBookingSnapshotView(), getSegmentCabinDTDRangeCancellationSnapshotView(), getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView(), getValueTypeIndexMap(), and initSnapshotBlocks().
|
protected |
Booking snapshot block.
Definition at line 294 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDRangeBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Cancellation snapshot block.
Definition at line 297 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDRangeCancellationSnapshotView(), and initSnapshotBlocks().
|
protected |
Price & product oriented booking block.
Definition at line 300 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView(), and initSnapshotBlocks().
|
protected |
Availability block.
Definition at line 303 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDRangeAvailabilitySnapshotView(), and initSnapshotBlocks().