StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
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 
12 namespace 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  // ////////////////////////////////////////////////////////////////////
33  }
34 
35  // ////////////////////////////////////////////////////////////////////
36  std::string AirportPair::toString() const {
37  std::ostringstream oStr;
38  oStr << describeKey();
39  return oStr.str();
40  }
41 }
42 
43 
stdair::AirportPair::describeKey
const std::string describeKey() const
Definition: AirportPair.hpp:57
Logger.hpp
stdair::DEFAULT_ORIGIN
const AirportCode_T DEFAULT_ORIGIN
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::AirportPair::~AirportPair
virtual ~AirportPair()
Definition: AirportPair.cpp:32
stdair::DEFAULT_DESTINATION
const AirportCode_T DEFAULT_DESTINATION
BasConst_Inventory.hpp
stdair::AirportPair::toString
std::string toString() const
Definition: AirportPair.cpp:36
stdair::AirportPairKey
Key of airport-pair.
Definition: AirportPairKey.hpp:16
AirportPair.hpp