StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
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:

List of all members.

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.

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.

Get the parent object.

Definition at line 52 of file GuillotineBlock.hpp.

References _parent.

Get the guillotine number (part of the primary key).

Definition at line 57 of file GuillotineBlock.hpp.

References _key, and stdair::GuillotineBlockKey::getGuillotineNumber().

Get the map of children holders.

Definition at line 64 of file GuillotineBlock.hpp.

References _holderMap.

Get the segment-cabin index map.

Definition at line 69 of file GuillotineBlock.hpp.

References _segmentCabinIndexMap.

Get the value type index map.

Definition at line 74 of file GuillotineBlock.hpp.

References _valueTypesIndexMap.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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) [inline, virtual]

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

Primary key (guillotine number and departure block).

Definition at line 278 of file GuillotineBlock.hpp.

Referenced by describeKey(), getGuillotineNumber(), getKey(), and serialize().

Pointer on the parent class (Inventory).

Definition at line 281 of file GuillotineBlock.hpp.

Referenced by getParent().

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines