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

#include <stdair/bom/SegmentPeriod.hpp>

+ Inheritance diagram for stdair::SegmentPeriod:

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 &)
 
virtual ~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

template<typename BOM >
class FacBom
 
template<typename BOM >
class FacCloneBom
 
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 23 of file SegmentPeriod.hpp.

Constructor & Destructor Documentation

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

Main constructor.

Definition at line 13 of file SegmentPeriod.cpp.

stdair::SegmentPeriod::~SegmentPeriod ( )
protectedvirtual

Destructor.

Definition at line 29 of file SegmentPeriod.cpp.

Member Function Documentation

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

Get the segment-period key.

Definition at line 28 of file SegmentPeriod.hpp.

References _key.

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

Get the parent object.

Definition at line 31 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 34 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 39 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 42 of file SegmentPeriod.hpp.

References _boardingTime.

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

Get the off time.

Definition at line 45 of file SegmentPeriod.hpp.

References _offTime.

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

Get the boarding date offset.

Definition at line 48 of file SegmentPeriod.hpp.

References _boardingDateOffset.

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

Get the off date offset.

Definition at line 53 of file SegmentPeriod.hpp.

References _offDateOffset.

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

Get the elapsed time.

Definition at line 56 of file SegmentPeriod.hpp.

References _elapsedTime.

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

Get the cabin booking class map.

Definition at line 59 of file SegmentPeriod.hpp.

References _cabinBookingClassMap.

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

Get the map of children holders.

Definition at line 64 of file SegmentPeriod.hpp.

References _holderMap.

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

Set the boarding time.

Definition at line 69 of file SegmentPeriod.hpp.

References _boardingTime.

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

Set the off time.

Definition at line 74 of file SegmentPeriod.hpp.

References _offTime.

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

Set the boarding date offset.

Definition at line 77 of file SegmentPeriod.hpp.

References _boardingDateOffset.

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

Set the off date offset.

Definition at line 82 of file SegmentPeriod.hpp.

References _offDateOffset.

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

Set the elapsed time.

Definition at line 87 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 41 of file SegmentPeriod.cpp.

References _cabinBookingClassMap.

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

References toString().

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

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 104 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 33 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 110 of file SegmentPeriod.hpp.

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

Referenced by toString().

Friends And Related Function Documentation

template<typename BOM >
friend class FacBom
friend

Definition at line 16 of file SegmentPeriod.hpp.

template<typename BOM >
friend class FacCloneBom
friend

Definition at line 17 of file SegmentPeriod.hpp.

friend class FacBomManager
friend

Definition at line 18 of file SegmentPeriod.hpp.

Member Data Documentation

Key_T stdair::SegmentPeriod::_key
protected

Definition at line 135 of file SegmentPeriod.hpp.

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

BomAbstract* stdair::SegmentPeriod::_parent
protected

Definition at line 136 of file SegmentPeriod.hpp.

Referenced by getParent().

Duration_T stdair::SegmentPeriod::_boardingTime
protected

Definition at line 137 of file SegmentPeriod.hpp.

Referenced by getBoardingTime(), and setBoardingTime().

Duration_T stdair::SegmentPeriod::_offTime
protected

Definition at line 138 of file SegmentPeriod.hpp.

Referenced by getOffTime(), and setOffTime().

DateOffset_T stdair::SegmentPeriod::_boardingDateOffset
protected

Definition at line 139 of file SegmentPeriod.hpp.

Referenced by getBoardingDateOffset(), and setBoardingDateOffset().

DateOffset_T stdair::SegmentPeriod::_offDateOffset
protected

Definition at line 140 of file SegmentPeriod.hpp.

Referenced by getOffDateOffset(), and setOffDateOffset().

Duration_T stdair::SegmentPeriod::_elapsedTime
protected

Definition at line 141 of file SegmentPeriod.hpp.

Referenced by getElapsedTime(), and setElapsedTime().

CabinBookingClassMap_T stdair::SegmentPeriod::_cabinBookingClassMap
protected

Definition at line 142 of file SegmentPeriod.hpp.

Referenced by addCabinBookingClassList(), and getCabinBookingClassMap().

HolderMap_T stdair::SegmentPeriod::_holderMap
protected

Definition at line 143 of file SegmentPeriod.hpp.

Referenced by getHolderMap().


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