AirTSP Logo  1.01.2
C++ Simulated Airline Travel Solution Provider (TSP) Library
LegStruct.hpp
Go to the documentation of this file.
1 #ifndef __AIRTSP_BOM_LEGSTRUCT_HPP
2 #define __AIRTSP_BOM_LEGSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 #include <vector>
10 // StdAir
11 #include <stdair/stdair_basic_types.hpp>
12 #include <stdair/basic/StructAbstract.hpp>
13 // AirTSP
15 
16 // Forward declarations
17 namespace stdair {
18  class LegDate;
19 }
20 
21 namespace AIRTSP {
22 
24  struct LegStruct : public stdair::StructAbstract {
25  // Attributes
26  stdair::AirlineCode_T _airlineCode;
27  stdair::FlightNumber_T _flightNumber;
28  stdair::AirportCode_T _boardingPoint;
29  stdair::DateOffset_T _boardingDateOffset;
30  stdair::Duration_T _boardingTime;
31  stdair::AirportCode_T _offPoint;
32  stdair::DateOffset_T _offDateOffset;
33  stdair::Duration_T _offTime;
34  stdair::Duration_T _elapsed;
36 
42  void fill (const stdair::Date_T& iRefDate, stdair::LegDate&) const;
43 
45  const std::string describe() const;
46 
48  LegStruct();
49  };
50 
52  typedef std::vector<LegStruct> LegStructList_T;
53 
54 }
55 #endif // __AIRTSP_BOM_LEGSTRUCT_HPP
LegCabinStructList_T _cabinList
Definition: LegStruct.hpp:35
void fill(const stdair::Date_T &iRefDate, stdair::LegDate &) const
Definition: LegStruct.cpp:48
stdair::Duration_T _boardingTime
Definition: LegStruct.hpp:30
std::vector< LegCabinStruct > LegCabinStructList_T
stdair::AirportCode_T _offPoint
Definition: LegStruct.hpp:31
stdair::Duration_T _elapsed
Definition: LegStruct.hpp:34
stdair::AirlineCode_T _airlineCode
Definition: LegStruct.hpp:26
stdair::AirportCode_T _boardingPoint
Definition: LegStruct.hpp:28
Forward declarations.
const std::string describe() const
Definition: LegStruct.cpp:22
stdair::Duration_T _offTime
Definition: LegStruct.hpp:33
stdair::FlightNumber_T _flightNumber
Definition: LegStruct.hpp:27
stdair::DateOffset_T _boardingDateOffset
Definition: LegStruct.hpp:29
std::vector< LegStruct > LegStructList_T
Definition: LegStruct.hpp:52
stdair::DateOffset_T _offDateOffset
Definition: LegStruct.hpp:32