1.01.17
C++ Simulated Airline Travel Solution Provider (TSP) Library
Toggle main menu visibility
Loading...
Searching...
No Matches
ReachableUniverseKey.hpp
Go to the documentation of this file.
1
#ifndef __AIRTSP_BOM_REACHABLEUNIVERSEKEY_HPP
2
#define __AIRTSP_BOM_REACHABLEUNIVERSEKEY_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
// StdAir
11
#include <stdair/stdair_basic_types.hpp>
12
#include <stdair/bom/KeyAbstract.hpp>
13
15
namespace
boost
{
16
namespace
serialization
{
17
class
access;
18
}
19
}
20
21
namespace
AIRTSP
{
22
33
struct
ReachableUniverseKey :
public
stdair::KeyAbstract {
34
friend
class
boost::serialization::access
;
35
36
// /////////// Constructors and destructors ///////////
37
private
:
41
ReachableUniverseKey();
42
43
public
:
47
ReachableUniverseKey (
const
stdair::AirportCode_T& iOrigin);
48
52
ReachableUniverseKey (
const
ReachableUniverseKey&);
53
57
~ReachableUniverseKey
();
58
59
60
public
:
61
// /////////// Getters //////////
66
const
stdair::AirportCode_T&
getBoardingPoint
()
const
{
67
return
_origin;
68
}
69
70
71
public
:
72
// /////////// Display support methods /////////
78
void
toStream
(std::ostream& ioOut)
const
;
79
85
void
fromStream
(std::istream& ioIn);
86
96
const
std::string
toString
()
const
;
97
98
99
public
:
100
// /////////// (Boost) Serialisation support methods /////////
104
template
<
class
Archive>
105
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
106
107
private
:
112
void
serialisationImplementationExport()
const
;
113
void
serialisationImplementationImport();
114
115
116
private
:
117
// ///////////////// Attributes ///////////////
122
stdair::AirportCode_T _origin;
123
};
124
125
}
126
127
#endif
// __AIRTSP_BOM_REACHABLEUNIVERSEKEY_HPP
AIRTSP
Definition
AIRTSP_Service.hpp:23
boost::serialization
Definition
OriginDestinationSet.hpp:18
boost
Forward declarations.
Definition
OriginDestinationSet.hpp:17
AIRTSP::ReachableUniverseKey::toString
const std::string toString() const
Definition
ReachableUniverseKey.cpp:50
AIRTSP::ReachableUniverseKey::~ReachableUniverseKey
~ReachableUniverseKey()
Definition
ReachableUniverseKey.cpp:37
AIRTSP::ReachableUniverseKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
ReachableUniverseKey.cpp:72
AIRTSP::ReachableUniverseKey::fromStream
void fromStream(std::istream &ioIn)
Definition
ReachableUniverseKey.cpp:46
AIRTSP::ReachableUniverseKey::toStream
void toStream(std::ostream &ioOut) const
Definition
ReachableUniverseKey.cpp:41
AIRTSP::ReachableUniverseKey::getBoardingPoint
const stdair::AirportCode_T & getBoardingPoint() const
Definition
ReachableUniverseKey.hpp:66
AIRTSP::ReachableUniverseKey::access
friend class boost::serialization::access
Definition
ReachableUniverseKey.hpp:34
Generated on
for AirTSP by
1.17.0