StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
SegmentDateKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_SEGMENTDATEKEY_HPP
2 #define __STDAIR_BOM_SEGMENTDATEKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
10 
12 namespace boost {
13  namespace serialization {
14  class access;
15  }
16 }
17 
18 namespace stdair {
19 
24  struct SegmentDateKey : public KeyAbstract {
26 
27  // /////////// Constructors and destructors ///////////
28  private:
33 
34  public:
47 
48 
49  // /////////// Getters //////////
52  return _boardingPoint;
53  }
54 
56  const AirportCode_T& getOffPoint() const {
57  return _offPoint;
58  }
59 
60 
61  // /////////// Display support methods /////////
67  void toStream (std::ostream& ioOut) const;
68 
74  void fromStream (std::istream& ioIn);
75 
85  const std::string toString() const;
86 
87 
88  public:
89  // /////////// (Boost) Serialisation support methods /////////
93  template<class Archive>
94  void serialize (Archive& ar, const unsigned int iFileVersion);
95 
96  private:
101  void serialisationImplementationExport() const;
102  void serialisationImplementationImport();
103 
104 
105  private:
106  // ///////////////// Attributes ///////////////
110  AirportCode_T _boardingPoint;
111 
115  AirportCode_T _offPoint;
116  };
117 
118 }
119 #endif // __STDAIR_BOM_SEGMENTDATEKEY_HPP
void serialize(Archive &ar, const unsigned int iFileVersion)
LocationCode_T AirportCode_T
const std::string toString() const
const AirportCode_T & getOffPoint() const
Handle on the StdAir library context.
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
Forward declarations.
void fromStream(std::istream &ioIn)
void toStream(std::ostream &ioOut) const
Key of a given segment-date, made of an origin and a destination airports.
const AirportCode_T & getBoardingPoint() const
friend class boost::serialization::access