$treeview $search $mathjax
00001 #ifndef __STDAIR_BOM_PARSEDKEY_HPP 00002 #define __STDAIR_BOM_PARSEDKEY_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <iosfwd> 00009 #include <string> 00010 // StdAir 00011 #include <stdair/stdair_date_time_types.hpp> 00012 #include <stdair/bom/KeyAbstract.hpp> 00013 00014 namespace stdair { 00016 struct InventoryKey; 00017 struct FlightDateKey; 00018 struct SegmentDateKey; 00019 struct LegDateKey; 00020 00022 struct ParsedKey : public KeyAbstract{ 00023 00024 // //////////// Getter ////////////// 00026 InventoryKey getInventoryKey () const; 00027 00029 FlightDateKey getFlightDateKey () const; 00030 00032 SegmentDateKey getSegmentKey () const; 00033 00035 LegDateKey getLegKey () const; 00036 00038 const Duration_T getBoardingTime () const; 00039 00040 public: 00041 // /////////// Display support methods ///////// 00047 void toStream (std::ostream& ioOut) const; 00048 00054 void fromStream (std::istream& ioIn); 00055 00065 const std::string toString() const; 00066 00067 public: 00068 // ////////////// Constructor and destructor. ////////////// 00069 // Default constructor 00070 ParsedKey (); 00071 // Defaut destructor 00072 ~ParsedKey (); 00073 00074 public: 00075 // ///////////// Attributes /////////////// 00076 std::string _fullKey; 00077 std::string _airlineCode; 00078 std::string _flightNumber; 00079 std::string _departureDate; 00080 std::string _boardingPoint; 00081 std::string _offPoint; 00082 std::string _boardingTime; 00083 }; 00084 00085 } 00086 #endif // __STDAIR_BOM_PARSEDKEY_HPP