00001 #ifndef __SIMFQT_BOM_DATEPERIODKEY_HPP 00002 #define __SIMFQT_BOM_DATEPERIODKEY_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STDAIR 00008 #include <stdair/bom/KeyAbstract.hpp> 00009 #include <stdair/stdair_date_time_types.hpp> 00010 00011 namespace stdair { 00014 struct DatePeriodKey : public KeyAbstract { 00015 00016 public: 00017 // /////////// Construction /////////// 00019 DatePeriodKey (const DatePeriod_T&); 00021 DatePeriodKey (const DatePeriodKey&); 00023 ~DatePeriodKey (); 00024 00025 private: 00027 DatePeriodKey(); 00028 00029 public: 00030 // /////////// Getters ////////// 00032 const DatePeriod_T& getDatePeriod() const { 00033 return _datePeriod; 00034 } 00035 00036 public: 00037 00038 // /////////// Display support methods ///////// 00044 void toStream (std::ostream& ioOut) const; 00045 00051 void fromStream (std::istream& ioIn); 00052 00058 const std::string toString() const; 00059 00060 private: 00061 // ///////////////// Attributes /////////////////// 00065 DatePeriod_T _datePeriod; 00066 00067 }; 00068 00069 } 00070 #endif // __SIMFQT_BOM_DATEPERIODKEY_HPP