StdAir Logo  1.00.21
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
RMEventStruct.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <cassert>
6#include <sstream>
7// StdAir
9
10namespace stdair {
11
12 // //////////////////////////////////////////////////////////////////////
14 assert (false);
15 }
16
17 // //////////////////////////////////////////////////////////////////////
19 RMEventStruct (const RMEventStruct& iRMEvent)
20 : _airlineCode (iRMEvent._airlineCode),
21 _flightDateDescription (iRMEvent._flightDateDescription),
22 _RMEventTime (iRMEvent._RMEventTime) {
23 }
24
25 // //////////////////////////////////////////////////////////////////////
27 RMEventStruct (const AirlineCode_T& iAirlineCode,
28 const KeyDescription_T& iFlightDateDescription,
29 const DateTime_T& iRMEventTime)
30 : _airlineCode (iAirlineCode),
31 _flightDateDescription (iFlightDateDescription),
32 _RMEventTime (iRMEventTime) {
33 }
34
35 // //////////////////////////////////////////////////////////////////////
38
39 // //////////////////////////////////////////////////////////////////////
40 void RMEventStruct::toStream (std::ostream& ioOut) const {
41 ioOut << describe();
42 }
43
44 // //////////////////////////////////////////////////////////////////////
45 void RMEventStruct::fromStream (std::istream& ioIn) {
46 }
47
48 // //////////////////////////////////////////////////////////////////////
49 const std::string RMEventStruct::describe() const {
50 std::ostringstream oStr;
51 oStr << _airlineCode << ", " << _flightDateDescription << ", "
52 << _RMEventTime;
53 return oStr.str();
54 }
55
56}
Handle on the StdAir library context.
boost::posix_time::ptime DateTime_T
std::string KeyDescription_T
std::string AirlineCode_T
RMEventStruct(const AirlineCode_T &, const KeyDescription_T &, const DateTime_T &)
const std::string describe() const
void toStream(std::ostream &ioOut) const
void fromStream(std::istream &ioIn)