StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
AirportPairKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_AIRPORTPAIRKEY_HPP
2 #define __STDAIR_BOM_AIRPORTPAIRKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STDAIR
10 
11 namespace stdair {
12 
16  struct AirportPairKey : public KeyAbstract {
17 
18  public:
19  // /////////// Construction ///////////
22  const stdair::AirportCode_T&);
26  ~AirportPairKey ();
27  private:
29  AirportPairKey ();
30 
31  public:
32  // /////////// Getters //////////
37  return _boardingPoint;
38  }
39 
44  return _offPoint;
45  }
46 
47  // /////////// Display support methods /////////
53  void toStream (std::ostream& ioOut) const;
54 
60  void fromStream (std::istream& ioIn);
61 
67  const std::string toString() const;
68 
69  private:
70  // ///////////////// Attributes ///////////////////
74  AirportCode_T _boardingPoint;
75 
79  AirportCode_T _offPoint;
80  };
81 
82 }
83 #endif // __SIMFQT_BOM_AIRPORTPAIRKEY_HPP
void fromStream(std::istream &ioIn)
LocationCode_T AirportCode_T
Handle on the StdAir library context.
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
const stdair::AirportCode_T & getOffPoint() const
void toStream(std::ostream &ioOut) const
const stdair::AirportCode_T & getBoardingPoint() const
Key of airport-pair.
const std::string toString() const