AirTSP Logo  1.01.14
C++ Simulated Airline Travel Solution Provider (TSP) Library
Loading...
Searching...
No Matches
ReachableUniverse.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// AirTSP
16
17namespace AIRTSP {
18
19 // ////////////////////////////////////////////////////////////////////
21 : _key (stdair::DEFAULT_ORIGIN), _parent (NULL) {
22 assert (false);
23 }
24
25 // ////////////////////////////////////////////////////////////////////
26 ReachableUniverse::ReachableUniverse (const ReachableUniverse&)
27 : _key (stdair::DEFAULT_ORIGIN), _parent (NULL) {
28 assert (false);
29 }
30
31 // ////////////////////////////////////////////////////////////////////
33 : _key (iKey), _parent (NULL) {
34 }
35
36 // ////////////////////////////////////////////////////////////////////
39
40 // ////////////////////////////////////////////////////////////////////
41 std::string ReachableUniverse::toString() const {
42 std::ostringstream oStr;
43 oStr << _key.toString();
44 return oStr.str();
45 }
46
47 // ////////////////////////////////////////////////////////////////////
48 void ReachableUniverse::serialisationImplementationExport() const {
49 std::ostringstream oStr;
50 boost::archive::text_oarchive oa (oStr);
51 oa << *this;
52 }
53
54 // ////////////////////////////////////////////////////////////////////
55 void ReachableUniverse::serialisationImplementationImport() {
56 std::istringstream iStr;
57 boost::archive::text_iarchive ia (iStr);
58 ia >> *this;
59 }
60
61 // ////////////////////////////////////////////////////////////////////
62 template<class Archive>
63 void ReachableUniverse::serialize (Archive& ioArchive,
64 const unsigned int iFileVersion) {
65 ioArchive & _key;
66 }
67
68 // ////////////////////////////////////////////////////////////////////
69 // Explicit template instantiation
70 namespace ba = boost::archive;
71 template
73 unsigned int);
74 template
76 unsigned int);
77 // ////////////////////////////////////////////////////////////////////
78
79}
80
stdair::BomAbstract * _parent
void serialize(Archive &ar, const unsigned int iFileVersion)
Forward declarations.