AirSched Logo  0.1.4
C++ Simulated Airline Schedule Manager Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LegStruct.hpp
Go to the documentation of this file.
1 #ifndef __AIRSCHED_BOM_LEGSTRUCT_HPP
2 #define __AIRSCHED_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 // AirSched
15 
16 // Forward declarations
17 namespace stdair {
18  class LegDate;
19 }
20 
21 namespace AIRSCHED {
22 
24  struct LegStruct : public stdair::StructAbstract {
25  // Attributes
26  stdair::AirportCode_T _boardingPoint;
27  stdair::DateOffset_T _boardingDateOffset;
28  stdair::Duration_T _boardingTime;
29  stdair::AirportCode_T _offPoint;
30  stdair::DateOffset_T _offDateOffset;
31  stdair::Duration_T _offTime;
32  stdair::Duration_T _elapsed;
34 
40  void fill (const stdair::Date_T& iRefDate, stdair::LegDate&) const;
41 
43  const std::string describe() const;
44 
46  LegStruct();
47  };
48 
50  typedef std::vector<LegStruct> LegStructList_T;
51 
52 }
53 #endif // __AIRSCHED_BOM_LEGSTRUCT_HPP