StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AirportPair.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_AIRPORTPAIR_HPP
2 #define __STDAIR_BOM_AIRPORTPAIR_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STDAIR
11 
12 // Forward declaration
13 namespace stdair {
14 
18  class AirportPair : public BomAbstract {
19  template <typename BOM> friend class FacBom;
20  friend class FacBomManager;
21 
22  public:
23  // //////////// Type definitions //////////////
28 
29  public:
30  // /////////// Display support methods /////////
36  void toStream (std::ostream& ioOut) const {
37  ioOut << toString();
38  }
39 
45  void fromStream (std::istream& ioIn) {
46  }
47 
51  std::string toString() const;
52 
56  const std::string describeKey() const {
57  return _key.toString();
58  }
59 
60  public:
61  // ////////// Getters ////////////
65  const Key_T& getKey() const {
66  return _key;
67  }
68 
73  return _key.getBoardingPoint();
74  }
75 
79  const AirportCode_T& getOffPoint() const {
80  return _key.getOffPoint();
81  }
82 
86  BomAbstract* const getParent() const {
87  return _parent;
88  }
89 
93  const HolderMap_T& getHolderMap() const {
94  return _holderMap;
95  }
96 
97  protected:
98  // ////////// Constructors and destructors /////////
102  AirportPair (const Key_T&);
106  virtual ~AirportPair();
107 
108  private:
112  AirportPair();
116  AirportPair (const AirportPair&);
117 
118  protected:
119  // ///////////// Attributes /////////////
124 
129 
134 
135  };
136 
137 }
138 #endif // __STDAIR_BOM_AIRPORTPAIR_HPP
139