AirInv Logo  0.1.2
C++ Simulated Airline Inventory Management System library
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::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 _boardingDateOffset, _boardingTime, _elapsed, _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 58 of file LegStruct.cpp.

References _boardingTime, _elapsed, _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


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