StdAir Logo  1.00.20
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
13namespace stdair {
14
18 class AirportPair : public BomAbstract {
19 template <typename BOM> friend class FacBom;
20 template <typename BOM> friend class FacCloneBom;
21 friend class FacBomManager;
22
23 public:
24 // //////////// Type definitions //////////////
29
30 public:
31 // /////////// Display support methods /////////
37 void toStream (std::ostream& ioOut) const {
38 ioOut << toString();
39 }
40
46 void fromStream (std::istream& ioIn) {
47 }
48
52 std::string toString() const;
53
57 const std::string describeKey() const {
58 return _key.toString();
59 }
60
61 public:
62 // ////////// Getters ////////////
66 const Key_T& getKey() const {
67 return _key;
68 }
69
74 return _key.getBoardingPoint();
75 }
76
80 const AirportCode_T& getOffPoint() const {
81 return _key.getOffPoint();
82 }
83
87 BomAbstract* const getParent() const {
88 return _parent;
89 }
90
94 const HolderMap_T& getHolderMap() const {
95 return _holderMap;
96 }
97
98 protected:
99 // ////////// Constructors and destructors /////////
103 AirportPair (const Key_T&);
107 virtual ~AirportPair();
108
109 private:
113 AirportPair();
117 AirportPair (const AirportPair&);
118
119 protected:
120 // ///////////// Attributes /////////////
125
130
135
136 };
137
138}
139#endif // __STDAIR_BOM_AIRPORTPAIR_HPP
140
Handle on the StdAir library context.
std::map< const std::type_info *, BomAbstract * > HolderMap_T
LocationCode_T AirportCode_T
Class representing the actual attributes for an airport-pair.
BomAbstract * _parent
AirportPair(const Key_T &)
void toStream(std::ostream &ioOut) const
BomAbstract *const getParent() const
const AirportCode_T & getOffPoint() const
std::string toString() const
const std::string describeKey() const
friend class FacBom
const AirportCode_T & getBoardingPoint() const
const HolderMap_T & getHolderMap() const
friend class FacCloneBom
friend class FacBomManager
const Key_T & getKey() const
AirportPairKey Key_T
void fromStream(std::istream &ioIn)
Key of airport-pair.