StdAir Logo  1.00.21
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
SnapshotStruct.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 // //////////////////////////////////////////////////////////////////////
18 SnapshotStruct::
19 SnapshotStruct (const SnapshotStruct& iSnapshot)
20 : _airlineCode (iSnapshot._airlineCode),
21 _snapshotTime (iSnapshot._snapshotTime) {
22 }
23
24 // //////////////////////////////////////////////////////////////////////
25 SnapshotStruct::
26 SnapshotStruct (const AirlineCode_T& iAirlineCode,
27 const DateTime_T& iSnapshotTime)
28 : _airlineCode (iAirlineCode), _snapshotTime (iSnapshotTime) {
29 }
30
31 // //////////////////////////////////////////////////////////////////////
34
35 // //////////////////////////////////////////////////////////////////////
36 void SnapshotStruct::toStream (std::ostream& ioOut) const {
37 ioOut << describe();
38 }
39
40 // //////////////////////////////////////////////////////////////////////
41 void SnapshotStruct::fromStream (std::istream& ioIn) {
42 }
43
44 // //////////////////////////////////////////////////////////////////////
45 const std::string SnapshotStruct::describe() const {
46 std::ostringstream oStr;
47 oStr << _airlineCode << ", " << _snapshotTime;
48 return oStr.str();
49 }
50
51}
Handle on the StdAir library context.
boost::posix_time::ptime DateTime_T
std::string AirlineCode_T
void fromStream(std::istream &ioIn)
SnapshotStruct(const AirlineCode_T &, const DateTime_T &)
void toStream(std::ostream &ioOut) const
const std::string describe() const