StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
DatePeriodKey.hpp
Go to the documentation of this file.
1 #ifndef __SIMFQT_BOM_DATEPERIODKEY_HPP
2 #define __SIMFQT_BOM_DATEPERIODKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STDAIR
10 
11 namespace stdair {
14  struct DatePeriodKey : public KeyAbstract {
15 
16  public:
17  // /////////// Construction ///////////
19  DatePeriodKey (const DatePeriod_T&);
23  ~DatePeriodKey ();
24 
25  private:
27  DatePeriodKey();
28 
29  public:
30  // /////////// Getters //////////
32  const DatePeriod_T& getDatePeriod() const {
33  return _datePeriod;
34  }
35 
36  public:
37 
38  // /////////// Display support methods /////////
44  void toStream (std::ostream& ioOut) const;
45 
51  void fromStream (std::istream& ioIn);
52 
58  const std::string toString() const;
59 
60  private:
61  // ///////////////// Attributes ///////////////////
65  DatePeriod_T _datePeriod;
66 
67  };
68 
69 }
70 #endif // __SIMFQT_BOM_DATEPERIODKEY_HPP
void fromStream(std::istream &ioIn)
Handle on the StdAir library context.
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
const DatePeriod_T & getDatePeriod() const
void toStream(std::ostream &ioOut) const
Key of date-period.
const std::string toString() const
boost::gregorian::date_period DatePeriod_T