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
8
#include <
stdair/bom/SnapshotStruct.hpp
>
9
10
namespace
stdair
{
11
12
// //////////////////////////////////////////////////////////////////////
13
SnapshotStruct::SnapshotStruct
() {
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
// //////////////////////////////////////////////////////////////////////
32
SnapshotStruct::~SnapshotStruct
() {
33
}
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
}
SnapshotStruct.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DateTime_T
boost::posix_time::ptime DateTime_T
Definition
stdair_date_time_types.hpp:26
stdair::AirlineCode_T
std::string AirlineCode_T
Definition
stdair_basic_types.hpp:31
stdair::SnapshotStruct::fromStream
void fromStream(std::istream &ioIn)
Definition
SnapshotStruct.cpp:41
stdair::SnapshotStruct::SnapshotStruct
SnapshotStruct(const AirlineCode_T &, const DateTime_T &)
Definition
SnapshotStruct.cpp:26
stdair::SnapshotStruct::toStream
void toStream(std::ostream &ioOut) const
Definition
SnapshotStruct.cpp:36
stdair::SnapshotStruct::~SnapshotStruct
~SnapshotStruct()
Definition
SnapshotStruct.cpp:32
stdair::SnapshotStruct::describe
const std::string describe() const
Definition
SnapshotStruct.cpp:45
Generated for StdAir by
1.14.0