StdAir Logo  1.00.8
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
stdair::TimePeriodKey::fromStream
void fromStream(std::istream &ioIn)
Definition: TimePeriodKey.cpp:43
stdair::TimePeriodKey::toString
const std::string toString() const
Definition: TimePeriodKey.cpp:47
stdair::Time_T
boost::posix_time::time_duration Time_T
Definition: stdair_date_time_types.hpp:23
stdair::TimePeriodKey
Key of time-period.
Definition: TimePeriodKey.hpp:15
stdair_date_time_types.hpp
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::TimePeriodKey::getTimeRangeStart
const Time_T & getTimeRangeStart() const
Definition: TimePeriodKey.hpp:35
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
stdair::TimePeriodKey::getTimeRangeEnd
const Time_T & getTimeRangeEnd() const
Definition: TimePeriodKey.hpp:42
KeyAbstract.hpp
stdair::TimePeriodKey::~TimePeriodKey
~TimePeriodKey()
Definition: TimePeriodKey.cpp:34
stdair::TimePeriodKey::toStream
void toStream(std::ostream &ioOut) const
Definition: TimePeriodKey.cpp:38