1.00.10
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
8
#include <
stdair/basic/BasConst_Inventory.hpp
>
9
#include <
stdair/service/Logger.hpp
>
10
#include <
stdair/bom/AirportPair.hpp
>
11
12
namespace
stdair
{
13
14
// ////////////////////////////////////////////////////////////////////
15
AirportPair::AirportPair()
16
: _key (
DEFAULT_ORIGIN
,
DEFAULT_DESTINATION
),
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
// ////////////////////////////////////////////////////////////////////
32
AirportPair::~AirportPair
() {
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::AirportPairKey
Key of airport-pair.
Definition:
AirportPairKey.hpp:16
Logger.hpp
stdair::DEFAULT_ORIGIN
const AirportCode_T DEFAULT_ORIGIN
stdair
Handle on the StdAir library context.
Definition:
BasChronometer.cpp:9
stdair::DEFAULT_DESTINATION
const AirportCode_T DEFAULT_DESTINATION
BasConst_Inventory.hpp
AirportPair.hpp
stdair::AirportPair::toString
std::string toString() const
Definition:
AirportPair.cpp:36
stdair::AirportPair::~AirportPair
virtual ~AirportPair()
Definition:
AirportPair.cpp:32
stdair::AirportPair::describeKey
const std::string describeKey() const
Definition:
AirportPair.hpp:57
Generated for StdAir by
1.8.18