Class representing the actual attributes for an airline guillotine-block. More...
#include <stdair/bom/GuillotineBlock.hpp>
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.
stdair::GuillotineBlock::GuillotineBlock | ( | const Key_T & | iKey | ) | [protected] |
Main constructor.
Definition at line 34 of file GuillotineBlock.cpp.
stdair::GuillotineBlock::~GuillotineBlock | ( | ) | [protected, virtual] |
Destructor.
Definition at line 38 of file GuillotineBlock.cpp.
const Key_T& stdair::GuillotineBlock::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::GuillotineBlock::getParent | ( | ) | const [inline] |
const GuillotineNumber_T& stdair::GuillotineBlock::getGuillotineNumber | ( | ) | const [inline] |
Get the guillotine number (part of the primary key).
Definition at line 57 of file GuillotineBlock.hpp.
References _key, and stdair::GuillotineBlockKey::getGuillotineNumber().
const HolderMap_T& stdair::GuillotineBlock::getHolderMap | ( | ) | const [inline] |
Get the map of children holders.
Definition at line 64 of file GuillotineBlock.hpp.
References _holderMap.
const SegmentCabinIndexMap_T& stdair::GuillotineBlock::getSegmentCabinIndexMap | ( | ) | const [inline] |
Get the segment-cabin index map.
Definition at line 69 of file GuillotineBlock.hpp.
References _segmentCabinIndexMap.
const ValueTypeIndexMap_T& stdair::GuillotineBlock::getValueTypeIndexMap | ( | ) | const [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.
void stdair::GuillotineBlock::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
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().
void stdair::GuillotineBlock::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 218 of file GuillotineBlock.hpp.
std::string stdair::GuillotineBlock::toString | ( | ) | const [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().
const std::string stdair::GuillotineBlock::describeKey | ( | ) | const [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 class FacBom [friend] |
Definition at line 32 of file GuillotineBlock.hpp.
friend class FacBomManager [friend] |
Definition at line 33 of file GuillotineBlock.hpp.
friend class boost::serialization::access [friend] |
Definition at line 34 of file GuillotineBlock.hpp.
Key_T stdair::GuillotineBlock::_key [protected] |
Primary key (guillotine number and departure block).
Definition at line 278 of file GuillotineBlock.hpp.
Referenced by describeKey(), getGuillotineNumber(), getKey(), and serialize().
BomAbstract* stdair::GuillotineBlock::_parent [protected] |
Pointer on the parent class (Inventory).
Definition at line 281 of file GuillotineBlock.hpp.
Referenced by getParent().
HolderMap_T stdair::GuillotineBlock::_holderMap [protected] |
Map holding the children.
Definition at line 284 of file GuillotineBlock.hpp.
Referenced by getHolderMap().
Map holding the segment-cabin position within the snapshot blocks.
Definition at line 287 of file GuillotineBlock.hpp.
Referenced by getBlockNumber(), getSegmentCabinIndexMap(), and initSnapshotBlocks().
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().
Booking snapshot block.
Definition at line 294 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDBookingSnapshotView(), getSegmentCabinDTDRangeBookingSnapshotView(), and initSnapshotBlocks().
Cancellation snapshot block.
Definition at line 297 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDCancellationSnapshotView(), getSegmentCabinDTDRangeCancellationSnapshotView(), and initSnapshotBlocks().
Price & product oriented booking block.
Definition at line 300 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView(), getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView(), and initSnapshotBlocks().
Availability block.
Definition at line 303 of file GuillotineBlock.hpp.
Referenced by getConstSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDAvailabilitySnapshotView(), getSegmentCabinDTDRangeAvailabilitySnapshotView(), and initSnapshotBlocks().