StdAir Logo  1.00.8
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
stdair::AirportPairKey::~AirportPairKey
~AirportPairKey()
Definition: AirportPairKey.cpp:34
stdair::AirportPairKey::toString
const std::string toString() const
Definition: AirportPairKey.cpp:47
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition: stdair_basic_types.hpp:22
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
stdair::AirportPairKey::getBoardingPoint
const stdair::AirportCode_T & getBoardingPoint() const
Definition: AirportPairKey.hpp:36
stdair_basic_types.hpp
KeyAbstract.hpp
stdair::AirportPairKey
Key of airport-pair.
Definition: AirportPairKey.hpp:16
stdair::AirportPairKey::fromStream
void fromStream(std::istream &ioIn)
Definition: AirportPairKey.cpp:43
stdair::AirportPairKey::getOffPoint
const stdair::AirportCode_T & getOffPoint() const
Definition: AirportPairKey.hpp:43
stdair::AirportPairKey::toStream
void toStream(std::ostream &ioOut) const
Definition: AirportPairKey.cpp:38