StdAir Logo  0.45.0
C++ Standard Airline IT Object Library
stdair::SegmentDate Class Reference

Class representing the actual attributes for an airline segment-date. More...

#include <stdair/bom/SegmentDate.hpp>

Inheritance diagram for stdair::SegmentDate:

List of all members.

Public Types

typedef SegmentDateKey Key_T

Public Member Functions

const Key_TgetKey () const
BomAbstract *const getParent () const
const AirportCode_TgetBoardingPoint () const
const AirportCode_TgetOffPoint () const
const HolderMap_TgetHolderMap () const
const Date_TgetBoardingDate () const
const Duration_TgetBoardingTime () const
const Date_TgetOffDate () const
const Duration_TgetOffTime () const
const Duration_TgetElapsedTime () const
const Distance_TgetDistance () const
const DateOffset_T getDateOffset () const
const Duration_T getTimeOffset () const
SegmentDategetOperatingSegmentDate () const
const SegmentDateList_TgetMarketingSegmentDateList () const
void setBoardingDate (const Date_T &iBoardingDate)
void setBoardingTime (const Duration_T &iBoardingTime)
void setOffDate (const Date_T &iOffDate)
void setOffTime (const Duration_T &iOffTime)
void setElapsedTime (const Duration_T &iElapsedTime)
void setDistance (const Distance_T &iDistance)
void linkWithOperating (SegmentDate &iSegmentDate)
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

 SegmentDate (const Key_T &)
virtual ~SegmentDate ()

Protected Attributes

Key_T _key
BomAbstract_parent
HolderMap_T _holderMap
SegmentDate_operatingSegmentDate
SegmentDateList_T _marketingSegmentDateList
Date_T _boardingDate
Duration_T _boardingTime
Date_T _offDate
Duration_T _offTime
Duration_T _elapsedTime
Distance_T _distance

Friends

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

Detailed Description

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

Definition at line 33 of file SegmentDate.hpp.


Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 43 of file SegmentDate.hpp.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 31 of file SegmentDate.cpp.

stdair::SegmentDate::~SegmentDate ( ) [protected, virtual]

Destructor.

Definition at line 37 of file SegmentDate.cpp.


Member Function Documentation

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

Get the segment-date key.

Definition at line 49 of file SegmentDate.hpp.

References _key.

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

Get the parent object.

Definition at line 54 of file SegmentDate.hpp.

References _parent.

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

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

Definition at line 59 of file SegmentDate.hpp.

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

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

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

Definition at line 64 of file SegmentDate.hpp.

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

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

Get the map of children holders.

Definition at line 69 of file SegmentDate.hpp.

References _holderMap.

const Date_T& stdair::SegmentDate::getBoardingDate ( ) const [inline]

Get the boarding date.

Definition at line 74 of file SegmentDate.hpp.

References _boardingDate.

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

Get the boarding time.

Definition at line 79 of file SegmentDate.hpp.

References _boardingTime.

const Date_T& stdair::SegmentDate::getOffDate ( ) const [inline]

Get the off date.

Definition at line 84 of file SegmentDate.hpp.

References _offDate.

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

Get the off time.

Definition at line 89 of file SegmentDate.hpp.

References _offTime.

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

Get the elapsed time.

Definition at line 94 of file SegmentDate.hpp.

References _elapsedTime.

const Distance_T& stdair::SegmentDate::getDistance ( ) const [inline]

Get the distance.

Definition at line 99 of file SegmentDate.hpp.

References _distance.

const DateOffset_T stdair::SegmentDate::getDateOffset ( ) const [inline]

Get the date offset (off date - boarding date).

Definition at line 104 of file SegmentDate.hpp.

References _boardingDate, and _offDate.

Referenced by getTimeOffset().

const Duration_T stdair::SegmentDate::getTimeOffset ( ) const

Get the time offset between boarding and off points.

It is defined as being:

TimeOffset = (OffTime - BoardingTime) + (OffDate - BoardingDate) * 24

  • ElapsedTime.

Definition at line 48 of file SegmentDate.cpp.

References _boardingTime, _elapsedTime, _offTime, and getDateOffset().

SegmentDate* stdair::SegmentDate::getOperatingSegmentDate ( ) const [inline]

Get the "operating" segment date.

Definition at line 121 of file SegmentDate.hpp.

References _operatingSegmentDate.

const SegmentDateList_T& stdair::SegmentDate::getMarketingSegmentDateList ( ) const [inline]

Get the list of marketing segment dates.

Definition at line 128 of file SegmentDate.hpp.

References _marketingSegmentDateList.

void stdair::SegmentDate::setBoardingDate ( const Date_T iBoardingDate) [inline]

Set the boarding date.

Definition at line 135 of file SegmentDate.hpp.

References _boardingDate.

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

Set the boarding time.

Definition at line 140 of file SegmentDate.hpp.

References _boardingTime.

void stdair::SegmentDate::setOffDate ( const Date_T iOffDate) [inline]

Set the off date.

Definition at line 145 of file SegmentDate.hpp.

References _offDate.

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

Set the off time.

Definition at line 150 of file SegmentDate.hpp.

References _offTime.

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

Set the elapsed time.

Definition at line 155 of file SegmentDate.hpp.

References _elapsedTime.

void stdair::SegmentDate::setDistance ( const Distance_T iDistance) [inline]

Set the distance.

Definition at line 160 of file SegmentDate.hpp.

References _distance.

void stdair::SegmentDate::linkWithOperating ( SegmentDate iSegmentDate) [inline]

Set operating segment date.

Definition at line 165 of file SegmentDate.hpp.

References _operatingSegmentDate.

void stdair::SegmentDate::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 176 of file SegmentDate.hpp.

References toString().

void stdair::SegmentDate::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 185 of file SegmentDate.hpp.

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

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 41 of file SegmentDate.cpp.

References describeKey().

Referenced by toStream().

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

Get a string describing the key.

Definition at line 196 of file SegmentDate.hpp.

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

Referenced by stdair::SegmentCabin::getFullerKey(), and toString().

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

Serialisation.

Definition at line 208 of file CmdBomSerialiser.cpp.

References _key.


Friends And Related Function Documentation

friend class FacBom [friend]

Definition at line 34 of file SegmentDate.hpp.

friend class FacBomManager [friend]

Definition at line 35 of file SegmentDate.hpp.

friend class boost::serialization::access [friend]

Definition at line 36 of file SegmentDate.hpp.


Member Data Documentation

Primary key (origin and destination).

Definition at line 250 of file SegmentDate.hpp.

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

Pointer on the parent class (FlightDate).

Definition at line 255 of file SegmentDate.hpp.

Referenced by getParent().

Map holding the children (SegmentCabin objects).

Definition at line 260 of file SegmentDate.hpp.

Referenced by getHolderMap().

Pointer on the operating SegmentDate. Nota: 1. "operating" refers to the codeshare contract seller. 2. the pointer will be NULL if the segment date is itself the "operating" one.

Definition at line 268 of file SegmentDate.hpp.

Referenced by getOperatingSegmentDate(), and linkWithOperating().

List holding the marketing segment dates. Nota: 1. "marketing" refers to the codeshare contract seller. 2. the list will be empty if the segment date is itself the "marketing" one.

Definition at line 276 of file SegmentDate.hpp.

Referenced by getMarketingSegmentDateList().

Boarding date.

Definition at line 281 of file SegmentDate.hpp.

Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().

Boarding time.

Definition at line 286 of file SegmentDate.hpp.

Referenced by getBoardingTime(), getTimeOffset(), and setBoardingTime().

Landing date.

Definition at line 291 of file SegmentDate.hpp.

Referenced by getDateOffset(), getOffDate(), and setOffDate().

Landing time.

Definition at line 296 of file SegmentDate.hpp.

Referenced by getOffTime(), getTimeOffset(), and setOffTime().

Trip elapsed time.

Definition at line 301 of file SegmentDate.hpp.

Referenced by getElapsedTime(), getTimeOffset(), and setElapsedTime().

Trip distance.

Definition at line 306 of file SegmentDate.hpp.

Referenced by getDistance(), and setDistance().


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