AirInv Logo  1.00.3
C++ Simulated Airline Inventory Management System library
FlightDateStruct.hpp
Go to the documentation of this file.
1 #ifndef __AIRINV_BOM_FLIGHTDATESTRUCT_HPP
2 #define __AIRINV_BOM_FLIGHTDATESTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
10 #include <stdair/stdair_inventory_types.hpp>
11 #include <stdair/basic/StructAbstract.hpp>
12 #include <stdair/bom/DoWStruct.hpp>
13 // AirInv
16 #include <airinv/bom/LegStruct.hpp>
23 
24 namespace AIRINV {
25 
27  struct FlightDateStruct : public stdair::StructAbstract {
28 
30  stdair::Date_T getDate() const;
31 
33  stdair::Duration_T getTime() const;
34 
36  const std::string describe() const;
37 
40  void addAirport (const stdair::AirportCode_T&);
41 
43  void buildSegments ();
44 
51  void addSegmentCabin (const SegmentStruct&,
52  const SegmentCabinStruct&);
53 
59  void addSegmentCabin (const SegmentCabinStruct&);
60 
67  void addFareFamily (const SegmentStruct&, const SegmentCabinStruct&,
68  const FareFamilyStruct&);
69 
76 
79 
80  // Attributes
81  stdair::AirlineCode_T _airlineCode;
82  stdair::FlightNumber_T _flightNumber;
83  stdair::Date_T _flightDate;
88 
90  unsigned int _itYear;
91  unsigned int _itMonth;
92  unsigned int _itDay;
94 
96  long _itHours;
97  long _itMinutes;
98  long _itSeconds;
99 
104 
111 
117  };
118 
119 }
120 #endif // __AIRINV_BOM_FLIGHTDATESTRUCT_HPP
FlightTypeCode.hpp
AIRINV::FlightDateStruct::addFareFamily
void addFareFamily(const SegmentStruct &, const SegmentCabinStruct &, const FareFamilyStruct &)
Definition: FlightDateStruct.cpp:167
AIRINV::FlightDateStruct::_itMonth
unsigned int _itMonth
Definition: FlightDateStruct.hpp:91
AIRINV::SegmentStructList_T
std::vector< SegmentStruct > SegmentStructList_T
Definition: SegmentStruct.hpp:43
AIRINV::FlightDateStruct::_flightVisibilityCode
FlightVisibilityCode _flightVisibilityCode
Definition: FlightDateStruct.hpp:85
AIRINV::FlightDateStruct::_itLegCabin
LegCabinStruct _itLegCabin
Definition: FlightDateStruct.hpp:109
AIRINV::FlightDateStruct::_segmentList
SegmentStructList_T _segmentList
Definition: FlightDateStruct.hpp:87
AIRINV::FlightDateStruct::getDate
stdair::Date_T getDate() const
Definition: FlightDateStruct.cpp:25
AIRINV::SegmentCabinStruct
Utility Structure for the parsing of SegmentCabin details.
Definition: SegmentCabinStruct.hpp:26
AIRINV::FlightDateStruct::_itHours
long _itHours
Definition: FlightDateStruct.hpp:96
AIRINV::FlightDateStruct::_itYear
unsigned int _itYear
Definition: FlightDateStruct.hpp:90
FareFamilyStruct.hpp
AIRINV::FlightTypeCode
Definition: FlightTypeCode.hpp:15
AIRINV::FlightDateStruct::_itSegmentCabin
SegmentCabinStruct _itSegmentCabin
Definition: FlightDateStruct.hpp:115
AIRINV::FlightDateStruct::_flightNumber
stdair::FlightNumber_T _flightNumber
Definition: FlightDateStruct.hpp:82
AIRINV::FlightDateStruct::describe
const std::string describe() const
Definition: FlightDateStruct.cpp:37
BucketStruct.hpp
AIRINV::FlightDateStruct::_itLeg
LegStruct _itLeg
Definition: FlightDateStruct.hpp:108
LegStruct.hpp
AIRINV::FlightDateStruct::addSegmentCabin
void addSegmentCabin(const SegmentStruct &, const SegmentCabinStruct &)
Definition: FlightDateStruct.cpp:116
AIRINV::FlightDateStruct::_itSeconds
long _itSeconds
Definition: FlightDateStruct.hpp:98
AIRINV::FlightDateStruct::_airportList
AirportList_T _airportList
Definition: FlightDateStruct.hpp:102
SegmentStruct.hpp
AIRINV::FlightDateStruct::_itMinutes
long _itMinutes
Definition: FlightDateStruct.hpp:97
AIRINV::FlightDateStruct::_itSegment
SegmentStruct _itSegment
Definition: FlightDateStruct.hpp:114
AIRINV::FlightDateStruct::_itBookingClass
BookingClassStruct _itBookingClass
Definition: FlightDateStruct.hpp:116
AirportList.hpp
AIRINV::FlightDateStruct::_flightDate
stdair::Date_T _flightDate
Definition: FlightDateStruct.hpp:83
AIRINV::LegStructList_T
std::vector< LegStruct > LegStructList_T
Definition: LegStruct.hpp:57
AIRINV::FlightDateStruct::_legAlreadyDefined
bool _legAlreadyDefined
Definition: FlightDateStruct.hpp:107
LegCabinStruct.hpp
AIRINV
Definition: AIRINV_Master_Service.hpp:38
AIRINV::FlightDateStruct::_airlineCode
stdair::AirlineCode_T _airlineCode
Definition: FlightDateStruct.hpp:81
AIRINV::FlightDateStruct::getTime
stdair::Duration_T getTime() const
Definition: FlightDateStruct.cpp:30
AIRINV::BookingClassStruct
Definition: BookingClassStruct.hpp:24
AIRINV::BucketStruct
Utility Structure for the parsing of Bucket structures.
Definition: BucketStruct.hpp:26
AIRINV::SegmentStruct
Definition: SegmentStruct.hpp:23
AIRINV::FlightDateStruct::_airportOrderedList
AirportOrderedList_T _airportOrderedList
Definition: FlightDateStruct.hpp:103
AIRINV::FlightDateStruct::_areSegmentDefinitionsSpecific
bool _areSegmentDefinitionsSpecific
Definition: FlightDateStruct.hpp:113
AIRINV::LegCabinStruct
Definition: LegCabinStruct.hpp:24
AIRINV::FareFamilyStruct
Utility Structure for the parsing of fare family details.
Definition: FareFamilyStruct.hpp:26
AIRINV::FlightDateStruct::_itBucket
BucketStruct _itBucket
Definition: FlightDateStruct.hpp:110
AIRINV::FlightDateStruct::_flightTypeCode
FlightTypeCode _flightTypeCode
Definition: FlightDateStruct.hpp:84
AIRINV::FlightDateStruct::FlightDateStruct
FlightDateStruct()
Definition: FlightDateStruct.cpp:17
AIRINV::FlightDateStruct::_itDay
unsigned int _itDay
Definition: FlightDateStruct.hpp:92
AIRINV::AirportOrderedList_T
std::vector< stdair::AirportCode_T > AirportOrderedList_T
Definition: AirportList.hpp:17
AIRINV::FlightDateStruct::_legList
LegStructList_T _legList
Definition: FlightDateStruct.hpp:86
AIRINV::FlightDateStruct::buildSegments
void buildSegments()
Definition: FlightDateStruct.cpp:83
SegmentCabinStruct.hpp
AIRINV::AirportList_T
std::set< stdair::AirportCode_T > AirportList_T
Definition: AirportList.hpp:16
AIRINV::FlightDateStruct::_dateOffSet
int _dateOffSet
Definition: FlightDateStruct.hpp:93
AIRINV::LegStruct
Definition: LegStruct.hpp:24
AIRINV::FlightDateStruct::addAirport
void addAirport(const stdair::AirportCode_T &)
Definition: FlightDateStruct.cpp:67
FlightVisibilityCode.hpp
AIRINV::FlightDateStruct
Definition: FlightDateStruct.hpp:27
AIRINV::FlightVisibilityCode
Definition: FlightVisibilityCode.hpp:15