AirTSP Logo  1.01.0
C++ Simulated Airline Travel Solution Provider Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FlightPeriodStruct.hpp
Go to the documentation of this file.
1 #ifndef __AIRTSP_BOM_FLIGHTPERIODSTRUCT_HPP
2 #define __AIRTSP_BOM_FLIGHTPERIODSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
10 #include <stdair/stdair_basic_types.hpp>
11 #include <stdair/basic/StructAbstract.hpp>
12 #include <stdair/bom/DoWStruct.hpp>
13 // AirTSP
15 #include <airtsp/bom/LegStruct.hpp>
20 
21 namespace AIRTSP {
22 
26  struct FlightPeriodStruct : public stdair::StructAbstract {
27 
29  stdair::Date_T getDate() const;
30 
32  stdair::Duration_T getTime() const;
33 
35  const std::string describe() const;
36 
39  void addAirport (const stdair::AirportCode_T&);
40 
42  void buildSegments();
43 
50  void addSegmentCabin (const SegmentStruct&,
51  const SegmentCabinStruct&);
52 
58  void addSegmentCabin (const SegmentCabinStruct&);
59 
66  void addFareFamily (const SegmentStruct&,
67  const SegmentCabinStruct&,
68  const FareFamilyStruct&);
69 
75  void addFareFamily (const SegmentCabinStruct&,
76  const FareFamilyStruct&);
77 
82 
83  // Attributes
84  stdair::AirlineCode_T _airlineCode;
85  stdair::FlightNumber_T _flightNumber;
86  stdair::DatePeriod_T _dateRange;
87  stdair::DoWStruct _dow;
90 
96 
98  stdair::Date_T _dateRangeStart;
99  stdair::Date_T _dateRangeEnd;
100  unsigned int _itYear;
101  unsigned int _itMonth;
102  unsigned int _itDay;
104 
106  long _itHours;
109 
114 
119  };
120 
121 }
122 #endif // __AIRTSP_BOM_FLIGHTPERIODSTRUCT_HPP