00001 #ifndef __STDAIR_BOM_FLIGHTPERIODKEY_HPP 00002 #define __STDAIR_BOM_FLIGHTPERIODKEY_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STDAIR 00008 #include <stdair/bom/KeyAbstract.hpp> 00009 #include <stdair/bom/PeriodStruct.hpp> 00010 00011 namespace stdair { 00013 struct FlightPeriodKey : public KeyAbstract { 00014 00015 private: 00016 // /////////// Default constructor ////////// 00017 FlightPeriodKey (); 00018 public: 00019 // /////////// Construction /////////// 00021 FlightPeriodKey (const FlightNumber_T&, const PeriodStruct&); 00022 FlightPeriodKey (const FlightPeriodKey&); 00024 ~FlightPeriodKey (); 00025 00026 // /////////// Getters ////////// 00028 const FlightNumber_T& getFlightNumber() const { 00029 return _flightNumber; 00030 } 00031 00033 const PeriodStruct& getPeriod () const { 00034 return _period; 00035 } 00036 00037 // /////////// Display support methods ///////// 00040 void toStream (std::ostream& ioOut) const; 00041 00044 void fromStream (std::istream& ioIn); 00045 00051 const std::string toString() const; 00052 00053 private: 00054 // Attributes 00056 FlightNumber_T _flightNumber; 00057 00059 PeriodStruct _period; 00060 00061 }; 00062 00063 } 00064 #endif // __STDAIR_BOM_FLIGHTPERIODKEY_HPP