AirInv Logo  1.00.0
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRINV::LegStruct Struct Reference

#include <airinv/bom/LegStruct.hpp>

+ Inheritance diagram for AIRINV::LegStruct:

List of all members.

Public Member Functions

void fill (const stdair::Date_T &iRefDate, stdair::LegDate &) const
void fill (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::Date_T _boardingDate
stdair::Duration_T _boardingTime
stdair::AirportCode_T _offPoint
stdair::DateOffset_T _offDateOffset
stdair::Date_T _offDate
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

AIRINV::LegStruct::LegStruct ( )

Default Constructor.

Definition at line 16 of file LegStruct.cpp.


Member Function Documentation

void AIRINV::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 41 of file LegStruct.cpp.

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

void AIRINV::LegStruct::fill ( stdair::LegDate &  ioLegDate) const

Fill the LegDate objects with the attributes of the LegStruct.

Definition at line 62 of file LegStruct.cpp.

References _airlineCode, _boardingTime, _elapsed, _flightNumber, _offDate, _offPoint, and _offTime.

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

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

Definition at line 21 of file LegStruct.cpp.

References _boardingDate, _boardingPoint, _boardingTime, _cabinList, _elapsed, _offDate, _offPoint, _offTime, and AIRINV::LegCabinStruct::describe().

Referenced by AIRINV::FlightPeriodStruct::describe(), and AIRINV::FlightDateStruct::describe().


Member Data Documentation

stdair::AirportCode_T AIRINV::LegStruct::_boardingPoint
stdair::DateOffset_T AIRINV::LegStruct::_boardingDateOffset

Definition at line 29 of file LegStruct.hpp.

Referenced by fill(), and AIRINV::ScheduleParserHelper::storeOffTime::operator()().

stdair::Date_T AIRINV::LegStruct::_boardingDate
stdair::Duration_T AIRINV::LegStruct::_boardingTime
stdair::AirportCode_T AIRINV::LegStruct::_offPoint
stdair::DateOffset_T AIRINV::LegStruct::_offDateOffset
stdair::Date_T AIRINV::LegStruct::_offDate
stdair::Duration_T AIRINV::LegStruct::_offTime
stdair::Duration_T AIRINV::LegStruct::_elapsed

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