#include <airinv/bom/LegStruct.hpp>
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 |
Utility Structure for the parsing of Leg structures.
Definition at line 24 of file LegStruct.hpp.
AIRINV::LegStruct::LegStruct | ( | ) |
Default Constructor.
Definition at line 16 of file LegStruct.cpp.
References _boardingDate, and _offDate.
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::FlightDateStruct::describe(), and AIRINV::FlightPeriodStruct::describe().
stdair::AirlineCode_T AIRINV::LegStruct::_airlineCode |
Definition at line 26 of file LegStruct.hpp.
stdair::FlightNumber_T AIRINV::LegStruct::_flightNumber |
Definition at line 27 of file LegStruct.hpp.
stdair::AirportCode_T AIRINV::LegStruct::_boardingPoint |
Definition at line 28 of file LegStruct.hpp.
Referenced by describe().
stdair::DateOffset_T AIRINV::LegStruct::_boardingDateOffset |
Definition at line 29 of file LegStruct.hpp.
Referenced by fill().
stdair::Date_T AIRINV::LegStruct::_boardingDate |
Definition at line 30 of file LegStruct.hpp.
Referenced by describe(), and LegStruct().
stdair::Duration_T AIRINV::LegStruct::_boardingTime |
Definition at line 31 of file LegStruct.hpp.
Referenced by describe(), fill(), and fill().
stdair::AirportCode_T AIRINV::LegStruct::_offPoint |
Definition at line 32 of file LegStruct.hpp.
Referenced by describe(), fill(), and fill().
stdair::DateOffset_T AIRINV::LegStruct::_offDateOffset |
Definition at line 33 of file LegStruct.hpp.
Referenced by fill().
stdair::Date_T AIRINV::LegStruct::_offDate |
Definition at line 34 of file LegStruct.hpp.
Referenced by describe(), fill(), and LegStruct().
stdair::Duration_T AIRINV::LegStruct::_offTime |
Definition at line 35 of file LegStruct.hpp.
Referenced by describe(), fill(), and fill().
stdair::Duration_T AIRINV::LegStruct::_elapsed |
Definition at line 36 of file LegStruct.hpp.
Referenced by describe(), fill(), and fill().
LegCabinStructList_T AIRINV::LegStruct::_cabinList |
Definition at line 37 of file LegStruct.hpp.
Referenced by describe().