#include <airtsp/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 26 of file FlightPeriodStruct.hpp.
AIRTSP::FlightPeriodStruct::FlightPeriodStruct | ( | ) |
Constructor.
Definition at line 17 of file FlightPeriodStruct.cpp.
stdair::Date_T AIRTSP::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 AIRTSP::ScheduleParserHelper::storeDateRangeStart::operator()(), and AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::Duration_T AIRTSP::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 AIRTSP::ScheduleParserHelper::storeBoardingTime::operator()(), AIRTSP::ScheduleParserHelper::storeOffTime::operator()(), and AIRTSP::ScheduleParserHelper::storeElapsedTime::operator()().
const std::string AIRTSP::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, AIRTSP::SegmentStruct::describe(), and AIRTSP::LegStruct::describe().
Referenced by AIRTSP::ScheduleParserHelper::doEndFlight::operator()().
void AIRTSP::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 AIRTSP::ScheduleParserHelper::storeLegBoardingPoint::operator()(), and AIRTSP::ScheduleParserHelper::storeLegOffPoint::operator()().
void AIRTSP::FlightPeriodStruct::buildSegments | ( | ) |
Build the list of SegmentStruct objects.
Definition at line 78 of file FlightPeriodStruct.cpp.
References _airportList, _airportOrderedList, AIRTSP::SegmentStruct::_boardingPoint, AIRTSP::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRTSP::ScheduleParserHelper::storeSegmentSpecificity::operator()().
void AIRTSP::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 AIRTSP::SegmentStruct::_boardingPoint, AIRTSP::SegmentStruct::_cabinList, AIRTSP::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRTSP::ScheduleParserHelper::storeClasses::operator()().
void AIRTSP::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 AIRTSP::SegmentStruct::_cabinList, and _segmentList.
void AIRTSP::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 AIRTSP::SegmentStruct::_boardingPoint, AIRTSP::SegmentCabinStruct::_cabinCode, AIRTSP::SegmentStruct::_cabinList, AIRTSP::SegmentCabinStruct::_fareFamilies, AIRTSP::SegmentStruct::_offPoint, and _segmentList.
Referenced by AIRTSP::ScheduleParserHelper::storeFClasses::operator()().
void AIRTSP::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 AIRTSP::SegmentCabinStruct::_cabinCode, AIRTSP::SegmentStruct::_cabinList, AIRTSP::SegmentCabinStruct::_fareFamilies, and _segmentList.
stdair::AirlineCode_T AIRTSP::FlightPeriodStruct::_airlineCode |
Definition at line 84 of file FlightPeriodStruct.hpp.
Referenced by describe(), AIRTSP::ScheduleParserHelper::storeAirlineCode::operator()(), and AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::FlightNumber_T AIRTSP::FlightPeriodStruct::_flightNumber |
Definition at line 85 of file FlightPeriodStruct.hpp.
Referenced by describe(), AIRTSP::ScheduleParserHelper::storeFlightNumber::operator()(), and AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::DatePeriod_T AIRTSP::FlightPeriodStruct::_dateRange |
Definition at line 86 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::DoWStruct AIRTSP::FlightPeriodStruct::_dow |
Definition at line 87 of file FlightPeriodStruct.hpp.
Referenced by describe(), and AIRTSP::ScheduleParserHelper::storeDow::operator()().
LegStructList_T AIRTSP::FlightPeriodStruct::_legList |
Definition at line 88 of file FlightPeriodStruct.hpp.
Referenced by describe(), AIRTSP::ScheduleParserHelper::storeAirlineCode::operator()(), AIRTSP::ScheduleParserHelper::storeLegBoardingPoint::operator()(), and AIRTSP::ScheduleParserHelper::doEndFlight::operator()().
SegmentStructList_T AIRTSP::FlightPeriodStruct::_segmentList |
Definition at line 89 of file FlightPeriodStruct.hpp.
Referenced by addFareFamily(), addSegmentCabin(), buildSegments(), and describe().
bool AIRTSP::FlightPeriodStruct::_legAlreadyDefined |
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 AIRTSP::ScheduleParserHelper::storeLegBoardingPoint::operator()(), and AIRTSP::ScheduleParserHelper::doEndFlight::operator()().
LegStruct AIRTSP::FlightPeriodStruct::_itLeg |
Definition at line 94 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()(), AIRTSP::ScheduleParserHelper::storeLegBoardingPoint::operator()(), AIRTSP::ScheduleParserHelper::storeLegOffPoint::operator()(), AIRTSP::ScheduleParserHelper::storeOperatingAirlineCode::operator()(), AIRTSP::ScheduleParserHelper::storeOperatingFlightNumber::operator()(), AIRTSP::ScheduleParserHelper::storeBoardingTime::operator()(), AIRTSP::ScheduleParserHelper::storeOffTime::operator()(), AIRTSP::ScheduleParserHelper::storeElapsedTime::operator()(), AIRTSP::ScheduleParserHelper::storeCapacity::operator()(), and AIRTSP::ScheduleParserHelper::doEndFlight::operator()().
LegCabinStruct AIRTSP::FlightPeriodStruct::_itLegCabin |
Definition at line 95 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeLegCabinCode::operator()(), and AIRTSP::ScheduleParserHelper::storeCapacity::operator()().
stdair::Date_T AIRTSP::FlightPeriodStruct::_dateRangeStart |
Staging Date.
Definition at line 98 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeDateRangeStart::operator()(), and AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()().
stdair::Date_T AIRTSP::FlightPeriodStruct::_dateRangeEnd |
Definition at line 99 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()().
unsigned int AIRTSP::FlightPeriodStruct::_itYear |
Definition at line 100 of file FlightPeriodStruct.hpp.
Referenced by getDate().
unsigned int AIRTSP::FlightPeriodStruct::_itMonth |
Definition at line 101 of file FlightPeriodStruct.hpp.
Referenced by getDate().
unsigned int AIRTSP::FlightPeriodStruct::_itDay |
Definition at line 102 of file FlightPeriodStruct.hpp.
Referenced by getDate().
int AIRTSP::FlightPeriodStruct::_dateOffset |
Definition at line 103 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeBoardingTime::operator()(), AIRTSP::ScheduleParserHelper::storeOffTime::operator()(), and AIRTSP::ScheduleParserHelper::storeElapsedTime::operator()().
long AIRTSP::FlightPeriodStruct::_itHours |
long AIRTSP::FlightPeriodStruct::_itMinutes |
Definition at line 107 of file FlightPeriodStruct.hpp.
Referenced by getTime().
long AIRTSP::FlightPeriodStruct::_itSeconds |
Definition at line 108 of file FlightPeriodStruct.hpp.
Referenced by getTime(), AIRTSP::ScheduleParserHelper::storeDateRangeStart::operator()(), AIRTSP::ScheduleParserHelper::storeDateRangeEnd::operator()(), AIRTSP::ScheduleParserHelper::storeBoardingTime::operator()(), AIRTSP::ScheduleParserHelper::storeOffTime::operator()(), and AIRTSP::ScheduleParserHelper::storeElapsedTime::operator()().
AirportList_T AIRTSP::FlightPeriodStruct::_airportList |
Staging Airport List (helper to derive the list of Segment structures).
Definition at line 112 of file FlightPeriodStruct.hpp.
Referenced by addAirport(), buildSegments(), and AIRTSP::ScheduleParserHelper::storeSegmentSpecificity::operator()().
AirportOrderedList_T AIRTSP::FlightPeriodStruct::_airportOrderedList |
Definition at line 113 of file FlightPeriodStruct.hpp.
Referenced by addAirport(), buildSegments(), and AIRTSP::ScheduleParserHelper::storeSegmentSpecificity::operator()().
bool AIRTSP::FlightPeriodStruct::_areSegmentDefinitionsSpecific |
Staging Segment-related attributes.
Definition at line 116 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeSegmentSpecificity::operator()(), AIRTSP::ScheduleParserHelper::storeClasses::operator()(), and AIRTSP::ScheduleParserHelper::storeFClasses::operator()().
SegmentStruct AIRTSP::FlightPeriodStruct::_itSegment |
Definition at line 117 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeSegmentBoardingPoint::operator()(), AIRTSP::ScheduleParserHelper::storeSegmentOffPoint::operator()(), AIRTSP::ScheduleParserHelper::storeClasses::operator()(), and AIRTSP::ScheduleParserHelper::storeFClasses::operator()().
SegmentCabinStruct AIRTSP::FlightPeriodStruct::_itSegmentCabin |
Definition at line 118 of file FlightPeriodStruct.hpp.
Referenced by AIRTSP::ScheduleParserHelper::storeSegmentCabinCode::operator()(), AIRTSP::ScheduleParserHelper::storeClasses::operator()(), AIRTSP::ScheduleParserHelper::storeFamilyCode::operator()(), AIRTSP::ScheduleParserHelper::storeFRAT5CurveKey::operator()(), AIRTSP::ScheduleParserHelper::storeFFDisutilityCurveKey::operator()(), and AIRTSP::ScheduleParserHelper::storeFClasses::operator()().