AirTSP Logo  1.01.0
C++ Simulated Airline Travel Solution Provider Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 {
32 
33  // /////////// Constructors and destructors ///////////
34  private:
39 
40  public:
44  OriginDestinationSetKey (const stdair::AirportCode_T& iDestination);
45 
50 
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