AirInv Logo  1.00.8
C++ Simulated Airline Inventory Management System Library
Loading...
Searching...
No Matches
AIRINV::LegStruct Struct Reference

#include <airinv/bom/LegStruct.hpp>

+ Inheritance diagram for AIRINV::LegStruct:

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

◆ LegStruct()

AIRINV::LegStruct::LegStruct ( )

Default Constructor.

Definition at line 16 of file LegStruct.cpp.

Member Function Documentation

◆ fill() [1/2]

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.

◆ fill() [2/2]

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.

◆ describe()

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().

Member Data Documentation

◆ _airlineCode

◆ _flightNumber

◆ _boardingPoint

stdair::AirportCode_T AIRINV::LegStruct::_boardingPoint

◆ _boardingDateOffset

stdair::DateOffset_T AIRINV::LegStruct::_boardingDateOffset

Definition at line 29 of file LegStruct.hpp.

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

◆ _boardingDate

stdair::Date_T AIRINV::LegStruct::_boardingDate

◆ _boardingTime

stdair::Duration_T AIRINV::LegStruct::_boardingTime

◆ _offPoint

stdair::AirportCode_T AIRINV::LegStruct::_offPoint

◆ _offDateOffset

stdair::DateOffset_T AIRINV::LegStruct::_offDateOffset

◆ _offDate

stdair::Date_T AIRINV::LegStruct::_offDate

◆ _offTime

stdair::Duration_T AIRINV::LegStruct::_offTime

◆ _elapsed

stdair::Duration_T AIRINV::LegStruct::_elapsed

◆ _cabinList


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