StdAir Logo  1.00.17
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
BreakPointStruct.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <cassert>
6#include <sstream>
7// StdAir
10
11namespace stdair {
12
13 // //////////////////////////////////////////////////////////////////////
15 assert (false);
16 }
17
18 // //////////////////////////////////////////////////////////////////////
19 BreakPointStruct::
20 BreakPointStruct (const BreakPointStruct& iBreakPoint)
21 : _breakPointTime (iBreakPoint._breakPointTime) {
22 }
23
24 // //////////////////////////////////////////////////////////////////////
25 BreakPointStruct::
26 BreakPointStruct (const DateTime_T& iBreakPointTime)
27 : _breakPointTime (iBreakPointTime) {
28 }
29
30 // //////////////////////////////////////////////////////////////////////
31 BreakPointStruct::
32 BreakPointStruct (const Date_T& iBreakPointDate)
33 : _breakPointTime (iBreakPointDate, DEFAULT_NULL_DURATION) {
34 }
35
36 // //////////////////////////////////////////////////////////////////////
39
40 // //////////////////////////////////////////////////////////////////////
41 void BreakPointStruct::toStream (std::ostream& ioOut) const {
42 ioOut << describe();
43 }
44
45 // //////////////////////////////////////////////////////////////////////
46 void BreakPointStruct::fromStream (std::istream& ioIn) {
47 }
48
49 // //////////////////////////////////////////////////////////////////////
50 const std::string BreakPointStruct::describe() const {
51 std::ostringstream oStr;
52 oStr << _breakPointTime;
53 return oStr.str();
54 }
55
56}
Handle on the StdAir library context.
boost::gregorian::date Date_T
boost::posix_time::ptime DateTime_T
const Duration_T DEFAULT_NULL_DURATION
void toStream(std::ostream &ioOut) const
BreakPointStruct(const DateTime_T &)
void fromStream(std::istream &ioIn)
const std::string describe() const