#include <airinv/bom/FlightDateStruct.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 &) |
FlightDateStruct () |
Public Attributes | |
stdair::AirlineCode_T | _airlineCode |
stdair::FlightNumber_T | _flightNumber |
stdair::Date_T | _flightDate |
FlightTypeCode | _flightTypeCode |
FlightVisibilityCode | _flightVisibilityCode |
LegStructList_T | _legList |
SegmentStructList_T | _segmentList |
unsigned int | _itYear |
unsigned int | _itMonth |
unsigned int | _itDay |
int | _dateOffSet |
long | _itHours |
long | _itMinutes |
long | _itSeconds |
AirportList_T | _airportList |
AirportOrderedList_T | _airportOrderedList |
bool | _legAlreadyDefined |
LegStruct | _itLeg |
LegCabinStruct | _itLegCabin |
BucketStruct | _itBucket |
bool | _areSegmentDefinitionsSpecific |
SegmentStruct | _itSegment |
SegmentCabinStruct | _itSegmentCabin |
BookingClassStruct | _itBookingClass |
Utility Structure for the parsing of Flight-Date structures.
Definition at line 27 of file FlightDateStruct.hpp.
AIRINV::FlightDateStruct::FlightDateStruct | ( | ) |
Constructor.
Definition at line 17 of file FlightDateStruct.cpp.
stdair::Date_T AIRINV::FlightDateStruct::getDate | ( | ) | const |
Set the date from the staging details.
Definition at line 25 of file FlightDateStruct.cpp.
References _itDay, _itMonth, and _itYear.
Referenced by AIRINV::InventoryParserHelper::storeSnapshotDate::operator()(), AIRINV::InventoryParserHelper::storeFlightDate::operator()(), AIRINV::InventoryParserHelper::storeBoardingDate::operator()(), and AIRINV::InventoryParserHelper::storeOffDate::operator()().
stdair::Duration_T AIRINV::FlightDateStruct::getTime | ( | ) | const |
Set the time from the staging details.
Definition at line 30 of file FlightDateStruct.cpp.
References _itHours, _itMinutes, and _itSeconds.
Referenced by AIRINV::InventoryParserHelper::storeBoardingTime::operator()(), and AIRINV::InventoryParserHelper::storeOffTime::operator()().
const std::string AIRINV::FlightDateStruct::describe | ( | ) | const |
Give a description of the structure (for display purposes).
Definition at line 37 of file FlightDateStruct.cpp.
References _airlineCode, _flightDate, _flightNumber, _flightTypeCode, _flightVisibilityCode, _legList, _segmentList, AIRINV::SegmentStruct::describe(), AIRINV::LegStruct::describe(), AIRINV::FlightVisibilityCode::getCode(), and AIRINV::FlightVisibilityCode::NORMAL.
void AIRINV::FlightDateStruct::addAirport | ( | const stdair::AirportCode_T & | iAirport | ) |
Add the given airport to the internal lists (if not already existing).
Definition at line 67 of file FlightDateStruct.cpp.
References _airportList, and _airportOrderedList.
Referenced by AIRINV::InventoryParserHelper::storeLegBoardingPoint::operator()(), and AIRINV::InventoryParserHelper::storeLegOffPoint::operator()().
void AIRINV::FlightDateStruct::buildSegments | ( | ) |
Build the list of SegmentStruct objects.
Definition at line 83 of file FlightDateStruct.cpp.
References _airportList, _airportOrderedList, AIRINV::SegmentStruct::_boardingPoint, AIRINV::SegmentStruct::_offPoint, and _segmentList.
void AIRINV::FlightDateStruct::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 116 of file FlightDateStruct.cpp.
References AIRINV::SegmentStruct::_boardingPoint, AIRINV::SegmentStruct::_cabinList, AIRINV::SegmentStruct::_offPoint, and _segmentList.
void AIRINV::FlightDateStruct::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 153 of file FlightDateStruct.cpp.
References AIRINV::SegmentStruct::_cabinList, and _segmentList.
void AIRINV::FlightDateStruct::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 167 of file FlightDateStruct.cpp.
References AIRINV::SegmentStruct::_boardingPoint, AIRINV::SegmentCabinStruct::_cabinCode, AIRINV::SegmentStruct::_cabinList, AIRINV::SegmentCabinStruct::_fareFamilies, AIRINV::SegmentStruct::_offPoint, and _segmentList.
void AIRINV::FlightDateStruct::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 231 of file FlightDateStruct.cpp.
References AIRINV::SegmentCabinStruct::_cabinCode, AIRINV::SegmentStruct::_cabinList, AIRINV::SegmentCabinStruct::_fareFamilies, and _segmentList.
stdair::AirlineCode_T AIRINV::FlightDateStruct::_airlineCode |
Definition at line 81 of file FlightDateStruct.hpp.
Referenced by describe(), AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), and AIRINV::InventoryParserHelper::storeLegBoardingPoint::operator()().
stdair::FlightNumber_T AIRINV::FlightDateStruct::_flightNumber |
Definition at line 82 of file FlightDateStruct.hpp.
Referenced by describe(), AIRINV::InventoryParserHelper::storeFlightNumber::operator()(), and AIRINV::InventoryParserHelper::storeLegBoardingPoint::operator()().
stdair::Date_T AIRINV::FlightDateStruct::_flightDate |
Definition at line 83 of file FlightDateStruct.hpp.
Referenced by describe(), AIRINV::InventoryParserHelper::storeSnapshotDate::operator()(), and AIRINV::InventoryParserHelper::storeFlightDate::operator()().
FlightTypeCode AIRINV::FlightDateStruct::_flightTypeCode |
Definition at line 84 of file FlightDateStruct.hpp.
Referenced by describe(), and AIRINV::InventoryParserHelper::storeFlightTypeCode::operator()().
FlightVisibilityCode AIRINV::FlightDateStruct::_flightVisibilityCode |
Definition at line 85 of file FlightDateStruct.hpp.
Referenced by describe(), and AIRINV::InventoryParserHelper::storeFlightVisibilityCode::operator()().
LegStructList_T AIRINV::FlightDateStruct::_legList |
SegmentStructList_T AIRINV::FlightDateStruct::_segmentList |
Definition at line 87 of file FlightDateStruct.hpp.
Referenced by addFareFamily(), addSegmentCabin(), buildSegments(), describe(), AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeSegmentBoardingPoint::operator()(), and AIRINV::InventoryParserHelper::doEndFlightDate::operator()().
unsigned int AIRINV::FlightDateStruct::_itYear |
unsigned int AIRINV::FlightDateStruct::_itMonth |
Definition at line 91 of file FlightDateStruct.hpp.
Referenced by getDate().
unsigned int AIRINV::FlightDateStruct::_itDay |
Definition at line 92 of file FlightDateStruct.hpp.
Referenced by getDate().
int AIRINV::FlightDateStruct::_dateOffSet |
Definition at line 93 of file FlightDateStruct.hpp.
Referenced by AIRINV::InventoryParserHelper::storeBoardingTime::operator()().
long AIRINV::FlightDateStruct::_itHours |
long AIRINV::FlightDateStruct::_itMinutes |
Definition at line 97 of file FlightDateStruct.hpp.
Referenced by getTime().
long AIRINV::FlightDateStruct::_itSeconds |
Definition at line 98 of file FlightDateStruct.hpp.
Referenced by getTime(), AIRINV::InventoryParserHelper::storeBoardingTime::operator()(), and AIRINV::InventoryParserHelper::storeOffTime::operator()().
AirportList_T AIRINV::FlightDateStruct::_airportList |
Staging Airport List (helper to derive the list of Segment structures).
Definition at line 102 of file FlightDateStruct.hpp.
Referenced by addAirport(), and buildSegments().
AirportOrderedList_T AIRINV::FlightDateStruct::_airportOrderedList |
Definition at line 103 of file FlightDateStruct.hpp.
Referenced by addAirport(), and buildSegments().
bool AIRINV::FlightDateStruct::_legAlreadyDefined |
Staging Leg (resp. Cabin) structure, gathering the result of the iteration on one leg (resp. cabin).
Definition at line 107 of file FlightDateStruct.hpp.
LegStruct AIRINV::FlightDateStruct::_itLeg |
Definition at line 108 of file FlightDateStruct.hpp.
Referenced by AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeLegBoardingPoint::operator()(), AIRINV::InventoryParserHelper::storeLegOffPoint::operator()(), AIRINV::InventoryParserHelper::storeOperatingAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeOperatingFlightNumber::operator()(), AIRINV::InventoryParserHelper::storeBoardingDate::operator()(), AIRINV::InventoryParserHelper::storeBoardingTime::operator()(), AIRINV::InventoryParserHelper::storeOffDate::operator()(), AIRINV::InventoryParserHelper::storeOffTime::operator()(), AIRINV::InventoryParserHelper::storeLegCabinCode::operator()(), and AIRINV::InventoryParserHelper::storeSegmentBoardingPoint::operator()().
LegCabinStruct AIRINV::FlightDateStruct::_itLegCabin |
Definition at line 109 of file FlightDateStruct.hpp.
Referenced by AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeLegBoardingPoint::operator()(), AIRINV::InventoryParserHelper::storeLegCabinCode::operator()(), AIRINV::InventoryParserHelper::storeSaleableCapacity::operator()(), AIRINV::InventoryParserHelper::storeAU::operator()(), AIRINV::InventoryParserHelper::storeUPR::operator()(), AIRINV::InventoryParserHelper::storeBookingCounter::operator()(), AIRINV::InventoryParserHelper::storeNAV::operator()(), AIRINV::InventoryParserHelper::storeGAV::operator()(), AIRINV::InventoryParserHelper::storeACP::operator()(), AIRINV::InventoryParserHelper::storeETB::operator()(), AIRINV::InventoryParserHelper::storeYieldUpperRange::operator()(), and AIRINV::InventoryParserHelper::storeSegmentBoardingPoint::operator()().
BucketStruct AIRINV::FlightDateStruct::_itBucket |
Definition at line 110 of file FlightDateStruct.hpp.
Referenced by AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeLegBoardingPoint::operator()(), AIRINV::InventoryParserHelper::storeLegCabinCode::operator()(), AIRINV::InventoryParserHelper::storeYieldUpperRange::operator()(), AIRINV::InventoryParserHelper::storeBucketAvaibality::operator()(), AIRINV::InventoryParserHelper::storeSeatIndex::operator()(), and AIRINV::InventoryParserHelper::storeSegmentBoardingPoint::operator()().
bool AIRINV::FlightDateStruct::_areSegmentDefinitionsSpecific |
Staging Segment-related attributes.
Definition at line 113 of file FlightDateStruct.hpp.
SegmentStruct AIRINV::FlightDateStruct::_itSegment |
Definition at line 114 of file FlightDateStruct.hpp.
Referenced by AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeSegmentBoardingPoint::operator()(), AIRINV::InventoryParserHelper::storeSegmentOffPoint::operator()(), AIRINV::InventoryParserHelper::storeSegmentCabinCode::operator()(), AIRINV::InventoryParserHelper::storeFClasses::operator()(), and AIRINV::InventoryParserHelper::doEndFlightDate::operator()().
SegmentCabinStruct AIRINV::FlightDateStruct::_itSegmentCabin |
Definition at line 115 of file FlightDateStruct.hpp.
Referenced by AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeSegmentBoardingPoint::operator()(), AIRINV::InventoryParserHelper::storeSegmentCabinCode::operator()(), AIRINV::InventoryParserHelper::storeSegmentCabinBookingCounter::operator()(), AIRINV::InventoryParserHelper::storeClassCode::operator()(), AIRINV::InventoryParserHelper::storeFamilyCode::operator()(), and AIRINV::InventoryParserHelper::storeFClasses::operator()().
BookingClassStruct AIRINV::FlightDateStruct::_itBookingClass |
Definition at line 116 of file FlightDateStruct.hpp.
Referenced by AIRINV::InventoryParserHelper::storeAirlineCode::operator()(), AIRINV::InventoryParserHelper::storeSegmentBoardingPoint::operator()(), AIRINV::InventoryParserHelper::storeSegmentCabinCode::operator()(), AIRINV::InventoryParserHelper::storeClassCode::operator()(), AIRINV::InventoryParserHelper::storeSubclassCode::operator()(), AIRINV::InventoryParserHelper::storeParentClassCode::operator()(), AIRINV::InventoryParserHelper::storeParentSubclassCode::operator()(), AIRINV::InventoryParserHelper::storeCumulatedProtection::operator()(), AIRINV::InventoryParserHelper::storeProtection::operator()(), AIRINV::InventoryParserHelper::storeNego::operator()(), AIRINV::InventoryParserHelper::storeNoShow::operator()(), AIRINV::InventoryParserHelper::storeOverbooking::operator()(), AIRINV::InventoryParserHelper::storeNbOfBkgs::operator()(), AIRINV::InventoryParserHelper::storeNbOfGroupBkgs::operator()(), AIRINV::InventoryParserHelper::storeNbOfPendingGroupBkgs::operator()(), AIRINV::InventoryParserHelper::storeNbOfStaffBkgs::operator()(), AIRINV::InventoryParserHelper::storeNbOfWLBkgs::operator()(), AIRINV::InventoryParserHelper::storeClassETB::operator()(), AIRINV::InventoryParserHelper::storeClassAvailability::operator()(), AIRINV::InventoryParserHelper::storeSegmentAvailability::operator()(), AIRINV::InventoryParserHelper::storeRevenueAvailability::operator()(), and AIRINV::InventoryParserHelper::storeFClasses::operator()().