1.00.21
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
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
BasConst_Inventory.hpp
AirportPair.hpp
Logger.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DEFAULT_DESTINATION
const AirportCode_T DEFAULT_DESTINATION
stdair::DEFAULT_ORIGIN
const AirportCode_T DEFAULT_ORIGIN
stdair::AirportPair::_parent
BomAbstract * _parent
Definition
AirportPair.hpp:129
stdair::AirportPair::AirportPair
AirportPair(const Key_T &)
Definition
AirportPair.cpp:27
stdair::AirportPair::toString
std::string toString() const
Definition
AirportPair.cpp:36
stdair::AirportPair::_key
Key_T _key
Definition
AirportPair.hpp:124
stdair::AirportPair::describeKey
const std::string describeKey() const
Definition
AirportPair.hpp:57
stdair::AirportPair::~AirportPair
virtual ~AirportPair()
Definition
AirportPair.cpp:32
stdair::AirportPair::Key_T
AirportPairKey Key_T
Definition
AirportPair.hpp:28
Generated for StdAir by
1.13.2