StdAir Logo  1.00.16
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
AirportPair.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <cassert>
6#include <sstream>
7// StdAir
11
12namespace stdair {
13
14 // ////////////////////////////////////////////////////////////////////
15 AirportPair::AirportPair()
17 _parent (NULL) {
18 // That constructor is used by the serialisation process
19 }
20
21 // ////////////////////////////////////////////////////////////////////
22 AirportPair::AirportPair (const AirportPair& iAirportPair)
23 : _key (iAirportPair.getKey()), _parent (NULL) {
24 }
25
26 // ////////////////////////////////////////////////////////////////////
27 AirportPair::AirportPair (const Key_T& iKey)
28 : _key (iKey), _parent (NULL) {
29 }
30
31 // ////////////////////////////////////////////////////////////////////
34
35 // ////////////////////////////////////////////////////////////////////
36 std::string AirportPair::toString() const {
37 std::ostringstream oStr;
38 oStr << describeKey();
39 return oStr.str();
40 }
41}
42
43
Handle on the StdAir library context.
const AirportCode_T DEFAULT_DESTINATION
const AirportCode_T DEFAULT_ORIGIN
std::string toString() const
const std::string describeKey() const
Key of airport-pair.