#include <airinv/bom/FlightPeriodStruct.hpp>
Public Member Functions | |
stdair::Date_T | getDate () const |
stdair::Duration_T | getTime () const |
const std::string | describe () const |
void | addAirport (const stdair::AirportCode_T &) |
void | buildSegments () |
void | addSegmentCabin (const SegmentStruct &, const SegmentCabinStruct &) |
void | addSegmentCabin (const SegmentCabinStruct &) |
void | addFareFamily (const SegmentStruct &, const SegmentCabinStruct &, const FareFamilyStruct &) |
void | addFareFamily (const SegmentCabinStruct &, const FareFamilyStruct &) |
FlightPeriodStruct () |
Public Attributes | |
stdair::AirlineCode_T | _airlineCode |
stdair::FlightNumber_T | _flightNumber |
stdair::DatePeriod_T | _dateRange |
stdair::DoWStruct | _dow |
LegStructList_T | _legList |
SegmentStructList_T | _segmentList |
bool | _legAlreadyDefined |
LegStruct | _itLeg |
LegCabinStruct | _itLegCabin |
stdair::Date_T | _dateRangeStart |
stdair::Date_T | _dateRangeEnd |
unsigned int | _itYear |
unsigned int | _itMonth |
unsigned int | _itDay |
int | _dateOffset |
long | _itHours |
long | _itMinutes |
long | _itSeconds |
AirportList_T | _airportList |
AirportOrderedList_T | _airportOrderedList |
bool | _areSegmentDefinitionsSpecific |
SegmentStruct | _itSegment |
SegmentCabinStruct | _itSegmentCabin |
Utility Structure for the parsing of Flight-Period structures.
Definition at line 24 of file FlightPeriodStruct.hpp.
AIRINV::FlightPeriodStruct::FlightPeriodStruct | ( | ) |
Constructor.
Definition at line 17 of file FlightPeriodStruct.cpp.
stdair::Date_T AIRINV::FlightPeriodStruct::getDate | ( | ) | const |
Set the date from the staging details.
Definition at line 24 of file FlightPeriodStruct.cpp.
References _itDay, _itMonth, and _itYear.
Referenced by AIRINV::ScheduleParserHelper::storeDateRangeStart::operator()(), and AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::Duration_T AIRINV::FlightPeriodStruct::getTime | ( | ) | const |
Set the time from the staging details.
Definition at line 29 of file FlightPeriodStruct.cpp.
References _itHours, _itMinutes, and _itSeconds.
Referenced by AIRINV::ScheduleParserHelper::storeBoardingTime::operator()(), AIRINV::ScheduleParserHelper::storeOffTime::operator()(), and AIRINV::ScheduleParserHelper::storeElapsedTime::operator()().
const std::string AIRINV::FlightPeriodStruct::describe | ( | ) | const |
Give a description of the structure (for display purposes).
Definition at line 36 of file FlightPeriodStruct.cpp.
References _airlineCode, _dateRange, _dow, _flightNumber, _legList, _segmentList, AIRINV::SegmentStruct::describe(), and AIRINV::LegStruct::describe().
Referenced by AIRINV::ScheduleParserHelper::doEndFlight::operator()().
void AIRINV::FlightPeriodStruct::addAirport | ( | const stdair::AirportCode_T & | iAirport | ) |
Add the given airport to the internal lists (if not already existing).
Definition at line 62 of file FlightPeriodStruct.cpp.
References _airportList, and _airportOrderedList.
Referenced by AIRINV::ScheduleParserHelper::storeLegBoardingPoint::operator()(), and AIRINV::ScheduleParserHelper::storeLegOffPoint::operator()().
void AIRINV::FlightPeriodStruct::buildSegments | ( | ) |
Build the list of SegmentStruct objects.
Definition at line 78 of file FlightPeriodStruct.cpp.
References _airportList, _airportOrderedList, AIRINV::SegmentStruct::_boardingPoint, AIRINV::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRINV::ScheduleParserHelper::storeSegmentSpecificity::operator()().
void AIRINV::FlightPeriodStruct::addSegmentCabin | ( | const SegmentStruct & | iSegment, |
const SegmentCabinStruct & | iCabin | ||
) |
Add, to the Segment structure whose key corresponds to the given (board point, off point) pair, the specific segment cabin details (mainly, the list of the class codes).
Note that the Segment structure is retrieved from the internal list, already filled by a previous step (the buildSegments() method).
Definition at line 111 of file FlightPeriodStruct.cpp.
References AIRINV::SegmentStruct::_boardingPoint, AIRINV::SegmentStruct::_cabinList, AIRINV::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRINV::ScheduleParserHelper::storeClasses::operator()().
void AIRINV::FlightPeriodStruct::addSegmentCabin | ( | const SegmentCabinStruct & | iCabin | ) |
Add, to all the Segment structures, the general segment cabin details (mainly, the list of the class codes).
Note that the Segment structures are stored within the internal list, already filled by a previous step (the buildSegments() method).
Definition at line 148 of file FlightPeriodStruct.cpp.
References AIRINV::SegmentStruct::_cabinList, and _segmentList.
void AIRINV::FlightPeriodStruct::addFareFamily | ( | const SegmentStruct & | iSegment, |
const SegmentCabinStruct & | iCabin, | ||
const FareFamilyStruct & | iFareFamily | ||
) |
Add, to the SegmentCabin structure whose key corresponds to the given cabin code, the specific segment fare family details (mainly, the list of the class codes).
Note that the SegmentCabin structure is retrieved from the internal list, already filled by a previous step (the buildSegmentCabins() method).
Definition at line 161 of file FlightPeriodStruct.cpp.
References AIRINV::SegmentStruct::_boardingPoint, AIRINV::SegmentCabinStruct::_cabinCode, AIRINV::SegmentStruct::_cabinList, AIRINV::SegmentCabinStruct::_fareFamilies, AIRINV::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRINV::ScheduleParserHelper::storeFClasses::operator()().
void AIRINV::FlightPeriodStruct::addFareFamily | ( | const SegmentCabinStruct & | iCabin, |
const FareFamilyStruct & | iFareFamily | ||
) |
Add, to all the Segment structures, the general fare family sets (list of fare families).
Note that the SegmentCabin structures are stored within the internal list, already filled by a previous step (the buildSegmentCabins() method).
Definition at line 225 of file FlightPeriodStruct.cpp.
References AIRINV::SegmentCabinStruct::_cabinCode, AIRINV::SegmentStruct::_cabinList, AIRINV::SegmentCabinStruct::_fareFamilies, and _segmentList.
stdair::AirlineCode_T AIRINV::FlightPeriodStruct::_airlineCode |
Definition at line 80 of file FlightPeriodStruct.hpp.
Referenced by describe(), AIRINV::ScheduleParserHelper::storeAirlineCode::operator()(), and AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::FlightNumber_T AIRINV::FlightPeriodStruct::_flightNumber |
Definition at line 81 of file FlightPeriodStruct.hpp.
Referenced by describe(), AIRINV::ScheduleParserHelper::storeFlightNumber::operator()(), and AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::DatePeriod_T AIRINV::FlightPeriodStruct::_dateRange |
Definition at line 82 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::DoWStruct AIRINV::FlightPeriodStruct::_dow |
Definition at line 83 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRINV::ScheduleParserHelper::storeDow::operator()().
LegStructList_T AIRINV::FlightPeriodStruct::_legList |
Definition at line 84 of file FlightPeriodStruct.hpp.
Referenced by describe(), AIRINV::ScheduleParserHelper::storeAirlineCode::operator()(), AIRINV::ScheduleParserHelper::storeLegBoardingPoint::operator()(), and AIRINV::ScheduleParserHelper::doEndFlight::operator()().
SegmentStructList_T AIRINV::FlightPeriodStruct::_segmentList |
Definition at line 85 of file FlightPeriodStruct.hpp.
Referenced by addFareFamily(), addSegmentCabin(), buildSegments(), and describe().
bool AIRINV::FlightPeriodStruct::_legAlreadyDefined |
Staging Leg (resp. Cabin) structure, gathering the result of the iteration on one leg (resp. cabin).
Definition at line 89 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeLegBoardingPoint::operator()(), and AIRINV::ScheduleParserHelper::doEndFlight::operator()().
LegStruct AIRINV::FlightPeriodStruct::_itLeg |
Definition at line 90 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()(), AIRINV::ScheduleParserHelper::storeLegBoardingPoint::operator()(), AIRINV::ScheduleParserHelper::storeLegOffPoint::operator()(), AIRINV::ScheduleParserHelper::storeOperatingAirlineCode::operator()(), AIRINV::ScheduleParserHelper::storeOperatingFlightNumber::operator()(), AIRINV::ScheduleParserHelper::storeBoardingTime::operator()(), AIRINV::ScheduleParserHelper::storeOffTime::operator()(), AIRINV::ScheduleParserHelper::storeElapsedTime::operator()(), AIRINV::ScheduleParserHelper::storeCapacity::operator()(), and AIRINV::ScheduleParserHelper::doEndFlight::operator()().
LegCabinStruct AIRINV::FlightPeriodStruct::_itLegCabin |
Definition at line 91 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeLegCabinCode::operator()(), and AIRINV::ScheduleParserHelper::storeCapacity::operator()().
stdair::Date_T AIRINV::FlightPeriodStruct::_dateRangeStart |
Staging Date.
Definition at line 94 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeDateRangeStart::operator()(), and AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::Date_T AIRINV::FlightPeriodStruct::_dateRangeEnd |
Definition at line 95 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()().
unsigned int AIRINV::FlightPeriodStruct::_itYear |
Definition at line 96 of file FlightPeriodStruct.hpp.
Referenced by getDate().
unsigned int AIRINV::FlightPeriodStruct::_itMonth |
Definition at line 97 of file FlightPeriodStruct.hpp.
Referenced by getDate().
unsigned int AIRINV::FlightPeriodStruct::_itDay |
Definition at line 98 of file FlightPeriodStruct.hpp.
Referenced by getDate().
int AIRINV::FlightPeriodStruct::_dateOffset |
Definition at line 99 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeBoardingTime::operator()(), AIRINV::ScheduleParserHelper::storeOffTime::operator()(), and AIRINV::ScheduleParserHelper::storeElapsedTime::operator()().
long AIRINV::FlightPeriodStruct::_itHours |
long AIRINV::FlightPeriodStruct::_itMinutes |
Definition at line 103 of file FlightPeriodStruct.hpp.
Referenced by getTime().
long AIRINV::FlightPeriodStruct::_itSeconds |
Definition at line 104 of file FlightPeriodStruct.hpp.
Referenced by getTime(), AIRINV::ScheduleParserHelper::storeDateRangeStart::operator()(), AIRINV::ScheduleParserHelper::storeDateRangeEnd::operator()(), AIRINV::ScheduleParserHelper::storeBoardingTime::operator()(), AIRINV::ScheduleParserHelper::storeOffTime::operator()(), and AIRINV::ScheduleParserHelper::storeElapsedTime::operator()().
AirportList_T AIRINV::FlightPeriodStruct::_airportList |
Staging Airport List (helper to derive the list of Segment structures).
Definition at line 108 of file FlightPeriodStruct.hpp.
Referenced by addAirport(), buildSegments(), and AIRINV::ScheduleParserHelper::storeSegmentSpecificity::operator()().
AirportOrderedList_T AIRINV::FlightPeriodStruct::_airportOrderedList |
Definition at line 109 of file FlightPeriodStruct.hpp.
Referenced by addAirport(), buildSegments(), and AIRINV::ScheduleParserHelper::storeSegmentSpecificity::operator()().
bool AIRINV::FlightPeriodStruct::_areSegmentDefinitionsSpecific |
Staging Segment-related attributes.
Definition at line 112 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeSegmentSpecificity::operator()(), AIRINV::ScheduleParserHelper::storeClasses::operator()(), and AIRINV::ScheduleParserHelper::storeFClasses::operator()().
SegmentStruct AIRINV::FlightPeriodStruct::_itSegment |
Definition at line 113 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeSegmentBoardingPoint::operator()(), AIRINV::ScheduleParserHelper::storeSegmentOffPoint::operator()(), AIRINV::ScheduleParserHelper::storeClasses::operator()(), and AIRINV::ScheduleParserHelper::storeFClasses::operator()().
SegmentCabinStruct AIRINV::FlightPeriodStruct::_itSegmentCabin |
Definition at line 114 of file FlightPeriodStruct.hpp.
Referenced by AIRINV::ScheduleParserHelper::storeSegmentCabinCode::operator()(), AIRINV::ScheduleParserHelper::storeClasses::operator()(), AIRINV::ScheduleParserHelper::storeFamilyCode::operator()(), AIRINV::ScheduleParserHelper::storeFRAT5CurveKey::operator()(), AIRINV::ScheduleParserHelper::storeFFDisutilityCurveKey::operator()(), and AIRINV::ScheduleParserHelper::storeFClasses::operator()().