AirTSP Logo  1.01.11
C++ Simulated Airline Travel Solution Provider (TSP) Library
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
15namespace boost {
16 namespace serialization {
17 class access;
18 }
19}
20
21namespace AIRTSP {
22
33 struct ReachableUniverseKey : public stdair::KeyAbstract {
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
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
Forward declarations.
const std::string toString() const
void serialize(Archive &ar, const unsigned int iFileVersion)
void fromStream(std::istream &ioIn)
void toStream(std::ostream &ioOut) const
const stdair::AirportCode_T & getBoardingPoint() const
friend class boost::serialization::access