StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
TimePeriodKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_TIMEPERIODKEY_HPP
2 #define __STDAIR_BOM_TIMEPERIODKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STDAIR
10 
11 namespace stdair {
15  struct TimePeriodKey : public KeyAbstract {
16 
17  public:
18  // /////////// Construction ///////////
20  TimePeriodKey (const Time_T&,
21  const Time_T&);
25  ~TimePeriodKey ();
26  private:
28  TimePeriodKey ();
29 
30  public:
31  // /////////// Getter //////////
35  const Time_T& getTimeRangeStart() const {
36  return _timeRangeStart;
37  }
38 
42  const Time_T& getTimeRangeEnd() const {
43  return _timeRangeEnd;
44  }
45 
46  // /////////// Display support methods /////////
52  void toStream (std::ostream& ioOut) const;
53 
59  void fromStream (std::istream& ioIn);
60 
66  const std::string toString() const;
67 
68  private:
69  // ///////////////// Attributes ///////////////////
73  Time_T _timeRangeStart;
74 
78  Time_T _timeRangeEnd;
79 
80  };
81 
82 }
83 #endif // __STDAIR_BOM_TIMEPERIODKEY_HPP
Handle on the StdAir library context.
boost::posix_time::time_duration Time_T
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
const std::string toString() const
void toStream(std::ostream &ioOut) const
Key of time-period.
void fromStream(std::istream &ioIn)
const Time_T & getTimeRangeStart() const
const Time_T & getTimeRangeEnd() const