AirTSP Logo  1.01.7
C++ Simulated Airline Travel Solution Provider (TSP) Library
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 {
35 
36  // /////////// Constructors and destructors ///////////
37  private:
42 
43  public:
47  ReachableUniverseKey (const stdair::AirportCode_T& iOrigin);
48 
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
AIRTSP::ReachableUniverseKey::access
friend class boost::serialization::access
Definition: ReachableUniverseKey.hpp:34
AIRTSP::ReachableUniverseKey::fromStream
void fromStream(std::istream &ioIn)
Definition: ReachableUniverseKey.cpp:46
AIRTSP::ReachableUniverseKey::toString
const std::string toString() const
Definition: ReachableUniverseKey.cpp:50
boost
Forward declarations.
Definition: OriginDestinationSet.hpp:17
AIRTSP
Definition: AIRTSP_Service.hpp:23
AIRTSP::ReachableUniverseKey::getBoardingPoint
const stdair::AirportCode_T & getBoardingPoint() const
Definition: ReachableUniverseKey.hpp:66
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
Structure representing the key of the schedule-related BOM tree root.
Definition: ReachableUniverseKey.hpp:33
AIRTSP::ReachableUniverseKey::toStream
void toStream(std::ostream &ioOut) const
Definition: ReachableUniverseKey.cpp:41