1.01.17
C++ Simulated Airline Travel Solution Provider (TSP) Library
Toggle main menu visibility
Loading...
Searching...
No Matches
OriginDestinationSetKey.hpp
Go to the documentation of this file.
1
#ifndef __AIRTSP_BOM_ORIGINDESTINATIONSETKEY_HPP
2
#define __AIRTSP_BOM_ORIGINDESTINATIONSETKEY_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
30
struct
OriginDestinationSetKey :
public
stdair::KeyAbstract {
31
friend
class
boost::serialization::access
;
32
33
// /////////// Constructors and destructors ///////////
34
private
:
38
OriginDestinationSetKey();
39
40
public
:
44
OriginDestinationSetKey (
const
stdair::AirportCode_T& iDestination);
45
49
OriginDestinationSetKey (
const
OriginDestinationSetKey&);
50
54
~OriginDestinationSetKey
();
55
56
57
public
:
58
// /////////// Getters //////////
62
const
stdair::AirportCode_T&
getOffPoint
()
const
{
63
return
_destination;
64
}
65
66
67
public
:
68
// /////////// Display support methods /////////
74
void
toStream
(std::ostream& ioOut)
const
;
75
81
void
fromStream
(std::istream& ioIn);
82
92
const
std::string
toString
()
const
;
93
94
95
public
:
96
// /////////// (Boost) Serialisation support methods /////////
100
template
<
class
Archive>
101
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
102
103
private
:
108
void
serialisationImplementationExport()
const
;
109
void
serialisationImplementationImport();
110
111
112
private
:
113
// ///////////////// Attributes ///////////////
117
stdair::AirportCode_T _destination;
118
};
119
120
}
121
#endif
// __AIRTSP_BOM_ORIGINDESTINATIONSETKEY_HPP
AIRTSP
Definition
AIRTSP_Service.hpp:23
boost::serialization
Definition
OriginDestinationSet.hpp:18
boost
Forward declarations.
Definition
OriginDestinationSet.hpp:17
AIRTSP::OriginDestinationSetKey::getOffPoint
const stdair::AirportCode_T & getOffPoint() const
Definition
OriginDestinationSetKey.hpp:62
AIRTSP::OriginDestinationSetKey::fromStream
void fromStream(std::istream &ioIn)
Definition
OriginDestinationSetKey.cpp:46
AIRTSP::OriginDestinationSetKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
OriginDestinationSetKey.cpp:72
AIRTSP::OriginDestinationSetKey::toString
const std::string toString() const
Definition
OriginDestinationSetKey.cpp:50
AIRTSP::OriginDestinationSetKey::~OriginDestinationSetKey
~OriginDestinationSetKey()
Definition
OriginDestinationSetKey.cpp:37
AIRTSP::OriginDestinationSetKey::access
friend class boost::serialization::access
Definition
OriginDestinationSetKey.hpp:31
AIRTSP::OriginDestinationSetKey::toStream
void toStream(std::ostream &ioOut) const
Definition
OriginDestinationSetKey.cpp:41
Generated on
for AirTSP by
1.17.0