$treeview $search $mathjax
00001 #ifndef __STDAIR_BOM_LEGDATEKEY_HPP 00002 #define __STDAIR_BOM_LEGDATEKEY_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // StdAir 00008 #include <stdair/stdair_basic_types.hpp> 00009 #include <stdair/bom/KeyAbstract.hpp> 00010 00011 namespace stdair { 00012 00016 struct LegDateKey : public KeyAbstract { 00017 00018 // /////////// Constructors and destructors /////////// 00019 private: 00021 LegDateKey(); 00022 00023 public: 00025 LegDateKey (const AirportCode_T& iBoardingPoint); 00027 LegDateKey (const LegDateKey&); 00029 ~LegDateKey(); 00030 00031 00032 // /////////// Getters ////////// 00034 const AirportCode_T& getBoardingPoint() const { 00035 return _boardingPoint; 00036 } 00037 00038 00039 // /////////// Display support methods ///////// 00042 void toStream (std::ostream& ioOut) const; 00043 00046 void fromStream (std::istream& ioIn); 00047 00053 const std::string toString() const; 00054 00055 00056 private: 00057 // ///////////////// Attributes /////////////// 00059 AirportCode_T _boardingPoint; 00060 }; 00061 00062 } 00063 #endif // __STDAIR_BOM_LEGDATEKEY_HPP