AirInv Logo  1.00.1
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
void addAirport(const stdair::AirportCode_T &)
BookingClassStruct _itBookingClass
void addFareFamily(const SegmentStruct &, const SegmentCabinStruct &, const FareFamilyStruct &)
std::vector< stdair::AirportCode_T > AirportOrderedList_T
Definition: AirportList.hpp:17
AirportOrderedList_T _airportOrderedList
std::vector< SegmentStruct > SegmentStructList_T
stdair::AirlineCode_T _airlineCode
SegmentStructList_T _segmentList
std::vector< LegStruct > LegStructList_T
Definition: LegStruct.hpp:57
stdair::FlightNumber_T _flightNumber
std::set< stdair::AirportCode_T > AirportList_T
Definition: AirportList.hpp:16
const std::string describe() const
Utility Structure for the parsing of SegmentCabin details.
SegmentCabinStruct _itSegmentCabin
FlightVisibilityCode _flightVisibilityCode
stdair::Date_T getDate() const
Utility Structure for the parsing of fare family details.
stdair::Duration_T getTime() const
void addSegmentCabin(const SegmentStruct &, const SegmentCabinStruct &)
Utility Structure for the parsing of Bucket structures.