StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stdair::GuillotineBlock Class Reference

Class representing the actual attributes for an airline guillotine-block. More...

#include <stdair/bom/GuillotineBlock.hpp>

+ Inheritance diagram for stdair::GuillotineBlock:

Public Types

typedef GuillotineBlockKey Key_T

Public Member Functions

const Key_TgetKey () const
BomAbstract *const getParent () const
const GuillotineNumber_TgetGuillotineNumber () const
const HolderMap_TgetHolderMap () const
const SegmentCabinIndexMap_TgetSegmentCabinIndexMap () const
const ValueTypeIndexMap_TgetValueTypeIndexMap () const
const BlockIndex_TgetBlockIndex (const MapKey_T &) const
const BlockNumber_TgetBlockNumber (const SegmentCabin &) const
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T) const
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T) const
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T)
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T)
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDCancellationSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T) const
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeCancellationSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T) const
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDCancellationSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T)
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeCancellationSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T)
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T) const
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T) const
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDProductAndPriceOrientedBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T)
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeProductAndPriceOrientedBookingSnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T)
ConstSegmentCabinDTDSnapshotView_T getConstSegmentCabinDTDAvailabilitySnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T) const
ConstSegmentCabinDTDRangeSnapshotView_T getConstSegmentCabinDTDRangeAvailabilitySnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T) const
SegmentCabinDTDSnapshotView_T getSegmentCabinDTDAvailabilitySnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T)
SegmentCabinDTDRangeSnapshotView_T getSegmentCabinDTDRangeAvailabilitySnapshotView (const BlockNumber_T, const BlockNumber_T, const DTD_T, const DTD_T)
void initSnapshotBlocks (const SegmentCabinIndexMap_T &, const ValueTypeIndexMap_T &)
void toStream (std::ostream &ioOut) const
void fromStream (std::istream &ioIn)
std::string toString () const
const std::string describeKey () const
template<class Archive >
void serialize (Archive &ar, const unsigned int iFileVersion)

Protected Member Functions

 GuillotineBlock (const Key_T &)
virtual ~GuillotineBlock ()

Protected Attributes

Key_T _key
BomAbstract_parent
HolderMap_T _holderMap
SegmentCabinIndexMap_T _segmentCabinIndexMap
ValueTypeIndexMap_T _valueTypesIndexMap
SnapshotBlock_T _bookingSnapshotBlock
SnapshotBlock_T _cancellationSnapshotBlock
SnapshotBlock_T _productAndPriceOrientedBookingSnapshotBlock
SnapshotBlock_T _availabilitySnapshotBlock

Friends

class FacBom
class FacBomManager
class boost::serialization::access

Detailed Description

Class representing the actual attributes for an airline guillotine-block.

Definition at line 31 of file GuillotineBlock.hpp.

Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 41 of file GuillotineBlock.hpp.

Constructor & Destructor Documentation

stdair::GuillotineBlock::GuillotineBlock ( const Key_T iKey)
protected

Main constructor.

Definition at line 34 of file GuillotineBlock.cpp.

stdair::GuillotineBlock::~GuillotineBlock ( )
protectedvirtual

Destructor.

Definition at line 38 of file GuillotineBlock.cpp.

Member Function Documentation

const Key_T& stdair::GuillotineBlock::getKey ( ) const
inline

Get the guillotine-block key.

Definition at line 47 of file GuillotineBlock.hpp.

References _key.

BomAbstract* const stdair::GuillotineBlock::getParent ( ) const
inline

Get the parent object.

Definition at line 52 of file GuillotineBlock.hpp.

References _parent.

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
inlinevirtual

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 209 of file GuillotineBlock.hpp.

References toString().

void stdair::GuillotineBlock::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters
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().

template<class Archive >
void stdair::GuillotineBlock::serialize ( Archive &  ar,
const unsigned int  iFileVersion 
)

Serialisation.

Definition at line 307 of file GuillotineBlock.cpp.

References _key.

Friends And Related Function Documentation

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.

Member Data Documentation

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().

SegmentCabinIndexMap_T stdair::GuillotineBlock::_segmentCabinIndexMap
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().

SnapshotBlock_T stdair::GuillotineBlock::_bookingSnapshotBlock
protected
SnapshotBlock_T stdair::GuillotineBlock::_cancellationSnapshotBlock
protected
SnapshotBlock_T stdair::GuillotineBlock::_productAndPriceOrientedBookingSnapshotBlock
protected
SnapshotBlock_T stdair::GuillotineBlock::_availabilitySnapshotBlock
protected

The documentation for this class was generated from the following files: