AirTSP Logo  1.01.0
C++ Simulated Airline Travel Solution Provider Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRTSP::LegStruct Struct Reference

#include <airtsp/bom/LegStruct.hpp>

+ Inheritance diagram for AIRTSP::LegStruct:

Public Member Functions

void fill (const stdair::Date_T &iRefDate, stdair::LegDate &) const
const std::string describe () const
 LegStruct ()

Public Attributes

stdair::AirlineCode_T _airlineCode
stdair::FlightNumber_T _flightNumber
stdair::AirportCode_T _boardingPoint
stdair::DateOffset_T _boardingDateOffset
stdair::Duration_T _boardingTime
stdair::AirportCode_T _offPoint
stdair::DateOffset_T _offDateOffset
stdair::Duration_T _offTime
stdair::Duration_T _elapsed
LegCabinStructList_T _cabinList

Detailed Description

Utility Structure for the parsing of Leg structures.

Definition at line 24 of file LegStruct.hpp.

Constructor & Destructor Documentation

AIRTSP::LegStruct::LegStruct ( )

Default Constructor.

Definition at line 16 of file LegStruct.cpp.

Member Function Documentation

void AIRTSP::LegStruct::fill ( const stdair::Date_T &  iRefDate,
stdair::LegDate &  ioLegDate 
) const

Fill the LegDate objects with the attributes of the LegStruct.
The given reference date corresponds to the date of the FlightDate. Indeed, each Leg gets date off-sets, when compared to that (reference) flight-date, both for the boarding date and for the off date.

Definition at line 48 of file LegStruct.cpp.

References _airlineCode, _boardingDateOffset, _boardingTime, _elapsed, _flightNumber, _offDateOffset, _offPoint, and _offTime.

const std::string AIRTSP::LegStruct::describe ( ) const

Give a description of the structure (for display purposes).

Definition at line 22 of file LegStruct.cpp.

References _boardingDateOffset, _boardingPoint, _boardingTime, _cabinList, _elapsed, _offDateOffset, _offPoint, _offTime, and AIRTSP::LegCabinStruct::describe().

Referenced by AIRTSP::FlightPeriodStruct::describe().

Member Data Documentation

stdair::AirlineCode_T AIRTSP::LegStruct::_airlineCode
stdair::FlightNumber_T AIRTSP::LegStruct::_flightNumber
stdair::AirportCode_T AIRTSP::LegStruct::_boardingPoint
stdair::DateOffset_T AIRTSP::LegStruct::_boardingDateOffset
stdair::Duration_T AIRTSP::LegStruct::_boardingTime
stdair::AirportCode_T AIRTSP::LegStruct::_offPoint
stdair::DateOffset_T AIRTSP::LegStruct::_offDateOffset
stdair::Duration_T AIRTSP::LegStruct::_offTime
stdair::Duration_T AIRTSP::LegStruct::_elapsed

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