$treeview $search $mathjax
00001 #ifndef __AIRINV_BOM_LEGSTRUCT_HPP 00002 #define __AIRINV_BOM_LEGSTRUCT_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <string> 00009 #include <vector> 00010 // STDAIR 00011 #include <stdair/stdair_inventory_types.hpp> 00012 #include <stdair/basic/StructAbstract.hpp> 00013 // AIRINV 00014 #include <airinv/bom/LegCabinStruct.hpp> 00015 00016 // Forward declarations 00017 namespace stdair { 00018 class LegDate; 00019 } 00020 00021 namespace AIRINV { 00022 00024 struct LegStruct : public stdair::StructAbstract { 00025 // Attributes 00026 stdair::AirlineCode_T _airlineCode; 00027 stdair::FlightNumber_T _flightNumber; 00028 stdair::AirportCode_T _boardingPoint; 00029 stdair::DateOffset_T _boardingDateOffset; 00030 stdair::Date_T _boardingDate; 00031 stdair::Duration_T _boardingTime; 00032 stdair::AirportCode_T _offPoint; 00033 stdair::DateOffset_T _offDateOffset; 00034 stdair::Date_T _offDate; 00035 stdair::Duration_T _offTime; 00036 stdair::Duration_T _elapsed; 00037 LegCabinStructList_T _cabinList; 00038 00044 void fill (const stdair::Date_T& iRefDate, stdair::LegDate&) const; 00045 00047 void fill (stdair::LegDate&) const; 00048 00050 const std::string describe() const; 00051 00053 LegStruct(); 00054 }; 00055 00057 typedef std::vector<LegStruct> LegStructList_T; 00058 00059 } 00060 #endif // __AIRINV_BOM_LEGSTRUCT_HPP