StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
AirportPairKey.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_AIRPORTPAIRKEY_HPP
00002 #define __STDAIR_BOM_AIRPORTPAIRKEY_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STDAIR
00008 #include <stdair/bom/KeyAbstract.hpp>
00009 #include <stdair/stdair_basic_types.hpp>
00010 
00011 namespace stdair  {
00012 
00016   struct AirportPairKey : public KeyAbstract {
00017 
00018   public:
00019     // /////////// Construction ///////////
00021     AirportPairKey (const stdair::AirportCode_T&,
00022                     const stdair::AirportCode_T&);
00024     AirportPairKey (const AirportPairKey&);
00026     ~AirportPairKey ();
00027   private:
00029     AirportPairKey ();
00030     
00031   public:  
00032     // /////////// Getters //////////
00036     const stdair::AirportCode_T& getBoardingPoint() const {
00037       return _boardingPoint;
00038     }
00039 
00043     const stdair::AirportCode_T& getOffPoint() const {
00044       return _offPoint;
00045     }
00046     
00047     // /////////// Display support methods /////////
00053     void toStream (std::ostream& ioOut) const;
00054 
00060     void fromStream (std::istream& ioIn);
00061 
00067     const std::string toString() const;
00068 
00069   private:
00070     // ///////////////// Attributes ///////////////////
00074     AirportCode_T _boardingPoint;
00075 
00079     AirportCode_T _offPoint;
00080   };
00081 
00082 }
00083 #endif // __SIMFQT_BOM_AIRPORTPAIRKEY_HPP