#include <airsched/bom/FlightPeriodStruct.hpp>
Utility Structure for the parsing of Flight-Period structures.
Definition at line 26 of file FlightPeriodStruct.hpp.
AIRSCHED::FlightPeriodStruct::FlightPeriodStruct | ( | ) |
Constructor.
Definition at line 17 of file FlightPeriodStruct.cpp.
stdair::Date_T AIRSCHED::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 AIRSCHED::ScheduleParserHelper::storeDateRangeEnd::operator()(), and AIRSCHED::ScheduleParserHelper::storeDateRangeStart::operator()().
stdair::Duration_T AIRSCHED::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 AIRSCHED::ScheduleParserHelper::storeElapsedTime::operator()(), AIRSCHED::ScheduleParserHelper::storeOffTime::operator()(), and AIRSCHED::ScheduleParserHelper::storeBoardingTime::operator()().
const std::string AIRSCHED::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, AIRSCHED::SegmentStruct::describe(), and AIRSCHED::LegStruct::describe().
Referenced by AIRSCHED::ScheduleParserHelper::doEndFlight::operator()().
void AIRSCHED::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 AIRSCHED::ScheduleParserHelper::storeLegOffPoint::operator()(), and AIRSCHED::ScheduleParserHelper::storeLegBoardingPoint::operator()().
void AIRSCHED::FlightPeriodStruct::buildSegments | ( | ) |
Build the list of SegmentStruct objects.
Definition at line 78 of file FlightPeriodStruct.cpp.
References _airportList, _airportOrderedList, AIRSCHED::SegmentStruct::_boardingPoint, AIRSCHED::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRSCHED::ScheduleParserHelper::storeSegmentSpecificity::operator()().
void AIRSCHED::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 AIRSCHED::SegmentStruct::_boardingPoint, AIRSCHED::SegmentStruct::_cabinList, AIRSCHED::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRSCHED::ScheduleParserHelper::storeClasses::operator()().
void AIRSCHED::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 149 of file FlightPeriodStruct.cpp.
References AIRSCHED::SegmentStruct::_cabinList, and _segmentList.
void AIRSCHED::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 162 of file FlightPeriodStruct.cpp.
References AIRSCHED::SegmentStruct::_boardingPoint, AIRSCHED::SegmentCabinStruct::_cabinCode, AIRSCHED::SegmentStruct::_cabinList, AIRSCHED::SegmentCabinStruct::_fareFamilies, AIRSCHED::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRSCHED::ScheduleParserHelper::storeFClasses::operator()().
void AIRSCHED::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 229 of file FlightPeriodStruct.cpp.
References AIRSCHED::SegmentCabinStruct::_cabinCode, AIRSCHED::SegmentStruct::_cabinList, AIRSCHED::SegmentCabinStruct::_fareFamilies, and _segmentList.
stdair::AirlineCode_T AIRSCHED::FlightPeriodStruct::_airlineCode |
Definition at line 84 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRSCHED::ScheduleParserHelper::storeAirlineCode::operator()().
stdair::FlightNumber_T AIRSCHED::FlightPeriodStruct::_flightNumber |
Definition at line 85 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRSCHED::ScheduleParserHelper::storeFlightNumber::operator()().
stdair::DatePeriod_T AIRSCHED::FlightPeriodStruct::_dateRange |
Definition at line 86 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRSCHED::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::DoWStruct AIRSCHED::FlightPeriodStruct::_dow |
Definition at line 87 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRSCHED::ScheduleParserHelper::storeDow::operator()().
Definition at line 88 of file FlightPeriodStruct.hpp.
Referenced by describe(), AIRSCHED::ScheduleParserHelper::doEndFlight::operator()(), AIRSCHED::ScheduleParserHelper::storeLegBoardingPoint::operator()(), and AIRSCHED::ScheduleParserHelper::storeAirlineCode::operator()().
Definition at line 89 of file FlightPeriodStruct.hpp.
Referenced by addFareFamily(), addSegmentCabin(), buildSegments(), and describe().
Staging Leg (resp. Cabin) structure, gathering the result of the iteration on one leg (resp. cabin).
Definition at line 93 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::doEndFlight::operator()(), and AIRSCHED::ScheduleParserHelper::storeLegBoardingPoint::operator()().
Definition at line 94 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::doEndFlight::operator()(), AIRSCHED::ScheduleParserHelper::storeCapacity::operator()(), AIRSCHED::ScheduleParserHelper::storeElapsedTime::operator()(), AIRSCHED::ScheduleParserHelper::storeOffTime::operator()(), AIRSCHED::ScheduleParserHelper::storeBoardingTime::operator()(), AIRSCHED::ScheduleParserHelper::storeLegOffPoint::operator()(), and AIRSCHED::ScheduleParserHelper::storeLegBoardingPoint::operator()().
Definition at line 95 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::storeCapacity::operator()(), and AIRSCHED::ScheduleParserHelper::storeLegCabinCode::operator()().
stdair::Date_T AIRSCHED::FlightPeriodStruct::_dateRangeStart |
Staging Date.
Definition at line 98 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::storeDateRangeEnd::operator()(), and AIRSCHED::ScheduleParserHelper::storeDateRangeStart::operator()().
stdair::Date_T AIRSCHED::FlightPeriodStruct::_dateRangeEnd |
Definition at line 99 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::storeDateRangeEnd::operator()().
unsigned int AIRSCHED::FlightPeriodStruct::_itYear |
Definition at line 100 of file FlightPeriodStruct.hpp.
Referenced by getDate().
unsigned int AIRSCHED::FlightPeriodStruct::_itMonth |
Definition at line 101 of file FlightPeriodStruct.hpp.
Referenced by getDate().
unsigned int AIRSCHED::FlightPeriodStruct::_itDay |
Definition at line 102 of file FlightPeriodStruct.hpp.
Referenced by getDate().
Definition at line 103 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::storeElapsedTime::operator()(), AIRSCHED::ScheduleParserHelper::storeOffTime::operator()(), and AIRSCHED::ScheduleParserHelper::storeBoardingTime::operator()().
Definition at line 107 of file FlightPeriodStruct.hpp.
Referenced by getTime().
Definition at line 108 of file FlightPeriodStruct.hpp.
Referenced by getTime(), AIRSCHED::ScheduleParserHelper::storeElapsedTime::operator()(), AIRSCHED::ScheduleParserHelper::storeOffTime::operator()(), AIRSCHED::ScheduleParserHelper::storeBoardingTime::operator()(), AIRSCHED::ScheduleParserHelper::storeDateRangeEnd::operator()(), and AIRSCHED::ScheduleParserHelper::storeDateRangeStart::operator()().
Staging Airport List (helper to derive the list of Segment structures).
Definition at line 112 of file FlightPeriodStruct.hpp.
Referenced by addAirport(), buildSegments(), and AIRSCHED::ScheduleParserHelper::storeSegmentSpecificity::operator()().
Definition at line 113 of file FlightPeriodStruct.hpp.
Referenced by addAirport(), buildSegments(), and AIRSCHED::ScheduleParserHelper::storeSegmentSpecificity::operator()().
Staging Segment-related attributes.
Definition at line 116 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::storeFClasses::operator()(), AIRSCHED::ScheduleParserHelper::storeClasses::operator()(), and AIRSCHED::ScheduleParserHelper::storeSegmentSpecificity::operator()().
Definition at line 117 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::storeFClasses::operator()(), AIRSCHED::ScheduleParserHelper::storeClasses::operator()(), AIRSCHED::ScheduleParserHelper::storeSegmentOffPoint::operator()(), and AIRSCHED::ScheduleParserHelper::storeSegmentBoardingPoint::operator()().
Definition at line 118 of file FlightPeriodStruct.hpp.
Referenced by AIRSCHED::ScheduleParserHelper::storeFClasses::operator()(), AIRSCHED::ScheduleParserHelper::storeFamilyCode::operator()(), AIRSCHED::ScheduleParserHelper::storeClasses::operator()(), and AIRSCHED::ScheduleParserHelper::storeSegmentCabinCode::operator()().