1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
SegmentSnapshotTableKey.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
#include <sstream>
7
// Boost.Serialization
8
#include <boost/archive/text_iarchive.hpp>
9
#include <boost/archive/text_oarchive.hpp>
10
#include <boost/serialization/access.hpp>
11
// StdAir
12
#include <
stdair/basic/BasConst_Inventory.hpp
>
13
#include <
stdair/basic/BasConst_BomDisplay.hpp
>
14
#include <
stdair/bom/SegmentSnapshotTableKey.hpp
>
15
16
namespace
stdair
{
17
18
// ////////////////////////////////////////////////////////////////////
19
SegmentSnapshotTableKey::SegmentSnapshotTableKey()
20
: _tableID (
DEFAULT_TABLE_ID
) {
21
assert (
false
);
22
}
23
24
// ////////////////////////////////////////////////////////////////////
25
SegmentSnapshotTableKey::
26
SegmentSnapshotTableKey (
const
TableID_T
& iTableID)
27
: _tableID (iTableID) {
28
}
29
30
// ////////////////////////////////////////////////////////////////////
31
SegmentSnapshotTableKey::SegmentSnapshotTableKey (
const
SegmentSnapshotTableKey& iKey)
32
: _tableID (iKey._tableID) {
33
}
34
35
// ////////////////////////////////////////////////////////////////////
36
SegmentSnapshotTableKey::~SegmentSnapshotTableKey
() {
37
}
38
39
// ////////////////////////////////////////////////////////////////////
40
void
SegmentSnapshotTableKey::toStream
(std::ostream& ioOut)
const
{
41
ioOut <<
"SegmentSnapshotTableKey: "
<<
toString
();
42
}
43
44
// ////////////////////////////////////////////////////////////////////
45
void
SegmentSnapshotTableKey::fromStream
(std::istream& ioIn) {
46
}
47
48
// ////////////////////////////////////////////////////////////////////
49
const
std::string
SegmentSnapshotTableKey::toString
()
const
{
50
std::ostringstream oStr;
51
oStr << _tableID;
52
return
oStr.str();
53
}
54
55
// ////////////////////////////////////////////////////////////////////
56
void
SegmentSnapshotTableKey::serialisationImplementationExport()
const
{
57
std::ostringstream oStr;
58
boost::archive::text_oarchive oa (oStr);
59
oa << *
this
;
60
}
61
62
// ////////////////////////////////////////////////////////////////////
63
void
SegmentSnapshotTableKey::serialisationImplementationImport() {
64
std::istringstream iStr;
65
boost::archive::text_iarchive ia (iStr);
66
ia >> *
this
;
67
}
68
69
// ////////////////////////////////////////////////////////////////////
70
template
<
class
Archive>
71
void
SegmentSnapshotTableKey::serialize
(Archive& ioArchive,
72
const
unsigned
int
iFileVersion) {
77
ioArchive & _tableID;
78
}
79
80
// ////////////////////////////////////////////////////////////////////
81
// Explicit template instantiation
82
namespace
ba =
boost::archive
;
83
template
void
SegmentSnapshotTableKey::
84
serialize<ba::text_oarchive> (ba::text_oarchive&,
unsigned
int
);
85
template
void
SegmentSnapshotTableKey::
86
serialize<ba::text_iarchive> (ba::text_iarchive&,
unsigned
int
);
87
// ////////////////////////////////////////////////////////////////////
88
89
}
BasConst_BomDisplay.hpp
BasConst_Inventory.hpp
SegmentSnapshotTableKey.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DEFAULT_TABLE_ID
const TableID_T DEFAULT_TABLE_ID
stdair::TableID_T
unsigned short TableID_T
Definition
stdair_basic_types.hpp:37
boost::archive
Definition
FlightDate.hpp:21
stdair::SegmentSnapshotTableKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
SegmentSnapshotTableKey.cpp:71
stdair::SegmentSnapshotTableKey::toStream
void toStream(std::ostream &ioOut) const
Definition
SegmentSnapshotTableKey.cpp:40
stdair::SegmentSnapshotTableKey::toString
const std::string toString() const
Definition
SegmentSnapshotTableKey.cpp:49
stdair::SegmentSnapshotTableKey::fromStream
void fromStream(std::istream &ioIn)
Definition
SegmentSnapshotTableKey.cpp:45
stdair::SegmentSnapshotTableKey::~SegmentSnapshotTableKey
~SegmentSnapshotTableKey()
Definition
SegmentSnapshotTableKey.cpp:36
Generated for StdAir by
1.17.0