StdAir Logo  0.44.0
C++ Standard Airline IT Object Library
stdair::SegmentPeriod Class Reference

#include <stdair/bom/SegmentPeriod.hpp>

Inheritance diagram for stdair::SegmentPeriod:

List of all members.

Public Types

typedef SegmentPeriodKey Key_T

Public Member Functions

const Key_TgetKey () const
BomAbstract *const getParent () const
const AirportCode_TgetBoardingPoint () const
const AirportCode_TgetOffPoint () const
const Duration_TgetBoardingTime () const
const Duration_TgetOffTime () const
const DateOffset_TgetBoardingDateOffset () const
const DateOffset_TgetOffDateOffset () const
const Duration_TgetElapsedTime () const
const CabinBookingClassMap_TgetCabinBookingClassMap () const
const HolderMap_TgetHolderMap () const
void setBoardingTime (const Duration_T &iBoardingTime)
void setOffTime (const Duration_T &iOffTime)
void setBoardingDateOffset (const DateOffset_T &iDateOffset)
void setOffDateOffset (const DateOffset_T &iDateOffset)
void setElapsedTime (const Duration_T &iElapsedTime)
void addCabinBookingClassList (const CabinCode_T &, const ClassList_String_T &)
void toStream (std::ostream &ioOut) const
void fromStream (std::istream &ioIn)
std::string toString () const
const std::string describeKey () const

Protected Member Functions

 SegmentPeriod (const Key_T &)
 SegmentPeriod (const SegmentPeriod &)
 ~SegmentPeriod ()

Protected Attributes

Key_T _key
BomAbstract_parent
Duration_T _boardingTime
Duration_T _offTime
DateOffset_T _boardingDateOffset
DateOffset_T _offDateOffset
Duration_T _elapsedTime
CabinBookingClassMap_T _cabinBookingClassMap
HolderMap_T _holderMap

Friends

class FacBom
class FacBomManager

Detailed Description

Class representing the actual attributes for an airline segment-period.

Definition at line 15 of file SegmentPeriod.hpp.


Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 22 of file SegmentPeriod.hpp.


Constructor & Destructor Documentation

stdair::SegmentPeriod::SegmentPeriod ( const Key_T iKey) [protected]

Default constructors.

Definition at line 13 of file SegmentPeriod.cpp.

stdair::SegmentPeriod::SegmentPeriod ( const SegmentPeriod ) [protected]
stdair::SegmentPeriod::~SegmentPeriod ( ) [protected]

Destructor.

Definition at line 18 of file SegmentPeriod.cpp.


Member Function Documentation

const Key_T& stdair::SegmentPeriod::getKey ( ) const [inline]

Get the segment-period key.

Definition at line 27 of file SegmentPeriod.hpp.

References _key.

BomAbstract* const stdair::SegmentPeriod::getParent ( ) const [inline]

Get the parent object.

Definition at line 30 of file SegmentPeriod.hpp.

References _parent.

const AirportCode_T& stdair::SegmentPeriod::getBoardingPoint ( ) const [inline]

Get the boarding point (part of the primary key).

Definition at line 33 of file SegmentPeriod.hpp.

References _key, and stdair::SegmentPeriodKey::getBoardingPoint().

const AirportCode_T& stdair::SegmentPeriod::getOffPoint ( ) const [inline]

Get the off point (part of the primary key).

Definition at line 38 of file SegmentPeriod.hpp.

References _key, and stdair::SegmentPeriodKey::getOffPoint().

const Duration_T& stdair::SegmentPeriod::getBoardingTime ( ) const [inline]

Get the boarding time.

Definition at line 41 of file SegmentPeriod.hpp.

References _boardingTime.

const Duration_T& stdair::SegmentPeriod::getOffTime ( ) const [inline]

Get the off time.

Definition at line 44 of file SegmentPeriod.hpp.

References _offTime.

const DateOffset_T& stdair::SegmentPeriod::getBoardingDateOffset ( ) const [inline]

Get the boarding date offset.

Definition at line 47 of file SegmentPeriod.hpp.

References _boardingDateOffset.

const DateOffset_T& stdair::SegmentPeriod::getOffDateOffset ( ) const [inline]

Get the off date offset.

Definition at line 52 of file SegmentPeriod.hpp.

References _offDateOffset.

const Duration_T& stdair::SegmentPeriod::getElapsedTime ( ) const [inline]

Get the elapsed time.

Definition at line 55 of file SegmentPeriod.hpp.

References _elapsedTime.

const CabinBookingClassMap_T& stdair::SegmentPeriod::getCabinBookingClassMap ( ) const [inline]

Get the cabin booking class map.

Definition at line 58 of file SegmentPeriod.hpp.

References _cabinBookingClassMap.

const HolderMap_T& stdair::SegmentPeriod::getHolderMap ( ) const [inline]

Get the map of children holders.

Definition at line 63 of file SegmentPeriod.hpp.

References _holderMap.

void stdair::SegmentPeriod::setBoardingTime ( const Duration_T iBoardingTime) [inline]

Set the boarding time.

Definition at line 68 of file SegmentPeriod.hpp.

References _boardingTime.

void stdair::SegmentPeriod::setOffTime ( const Duration_T iOffTime) [inline]

Set the off time.

Definition at line 73 of file SegmentPeriod.hpp.

References _offTime.

void stdair::SegmentPeriod::setBoardingDateOffset ( const DateOffset_T iDateOffset) [inline]

Set the boarding date offset.

Definition at line 76 of file SegmentPeriod.hpp.

References _boardingDateOffset.

void stdair::SegmentPeriod::setOffDateOffset ( const DateOffset_T iDateOffset) [inline]

Set the off date offset.

Definition at line 81 of file SegmentPeriod.hpp.

References _offDateOffset.

void stdair::SegmentPeriod::setElapsedTime ( const Duration_T iElapsedTime) [inline]

Set the elapsed time.

Definition at line 86 of file SegmentPeriod.hpp.

References _elapsedTime.

void stdair::SegmentPeriod::addCabinBookingClassList ( const CabinCode_T iCabinCode,
const ClassList_String_T iClassCodeList 
)

Add a pair cabin code and list of class codes within the cabin to the cabin booking class map.

Definition at line 30 of file SegmentPeriod.cpp.

References _cabinBookingClassMap.

void stdair::SegmentPeriod::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 99 of file SegmentPeriod.hpp.

References toString().

void stdair::SegmentPeriod::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 103 of file SegmentPeriod.hpp.

std::string stdair::SegmentPeriod::toString ( ) const [virtual]

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 22 of file SegmentPeriod.cpp.

References describeKey().

Referenced by toStream().

const std::string stdair::SegmentPeriod::describeKey ( ) const [inline]

Get a string describing the key.

Definition at line 109 of file SegmentPeriod.hpp.

References _key, and stdair::SegmentPeriodKey::toString().

Referenced by toString().


Friends And Related Function Documentation

friend class FacBom [friend]

Definition at line 16 of file SegmentPeriod.hpp.

friend class FacBomManager [friend]

Definition at line 17 of file SegmentPeriod.hpp.


Member Data Documentation

Definition at line 120 of file SegmentPeriod.hpp.

Referenced by describeKey(), getBoardingPoint(), getKey(), and getOffPoint().

Definition at line 121 of file SegmentPeriod.hpp.

Referenced by getParent().

Definition at line 122 of file SegmentPeriod.hpp.

Referenced by getBoardingTime(), and setBoardingTime().

Definition at line 123 of file SegmentPeriod.hpp.

Referenced by getOffTime(), and setOffTime().

Definition at line 126 of file SegmentPeriod.hpp.

Referenced by getElapsedTime(), and setElapsedTime().

Definition at line 128 of file SegmentPeriod.hpp.

Referenced by getHolderMap().


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