AirInv Logo  0.1.2
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LegStruct.hpp
Go to the documentation of this file.
1 #ifndef __AIRINV_BOM_LEGSTRUCT_HPP
2 #define __AIRINV_BOM_LEGSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 #include <vector>
10 // STDAIR
11 #include <stdair/stdair_inventory_types.hpp>
12 #include <stdair/basic/StructAbstract.hpp>
13 // AIRINV
15 
16 // Forward declarations
17 namespace stdair {
18  class LegDate;
19 }
20 
21 namespace AIRINV {
22 
24  struct LegStruct : public stdair::StructAbstract {
25  // Attributes
26  stdair::AirportCode_T _boardingPoint;
27  stdair::DateOffset_T _boardingDateOffset;
28  stdair::Date_T _boardingDate;
29  stdair::Duration_T _boardingTime;
30  stdair::AirportCode_T _offPoint;
31  stdair::DateOffset_T _offDateOffset;
32  stdair::Date_T _offDate;
33  stdair::Duration_T _offTime;
34  stdair::Duration_T _elapsed;
36 
42  void fill (const stdair::Date_T& iRefDate, stdair::LegDate&) const;
43 
45  void fill (stdair::LegDate&) const;
46 
48  const std::string describe() const;
49 
51  LegStruct();
52  };
53 
55  typedef std::vector<LegStruct> LegStructList_T;
56 
57 }
58 #endif // __AIRINV_BOM_LEGSTRUCT_HPP