1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
AirportPairKey.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <ostream>
6
#include <sstream>
7
// STDAIR
8
#include <
stdair/basic/BasConst_BomDisplay.hpp
>
9
#include <
stdair/basic/BasConst_Inventory.hpp
>
10
#include <
stdair/bom/AirportPairKey.hpp
>
11
12
namespace
stdair
{
13
14
// ////////////////////////////////////////////////////////////////////
15
AirportPairKey::AirportPairKey
()
16
: _boardingPoint (
DEFAULT_ORIGIN
),
17
_offPoint (
DEFAULT_DESTINATION
) {
18
assert (
false
);
19
}
20
21
// ////////////////////////////////////////////////////////////////////
22
AirportPairKey::AirportPairKey
(
const
AirportCode_T
& iBoardingPoint,
23
const
AirportCode_T
& iOffPoint)
24
: _boardingPoint (iBoardingPoint), _offPoint (iOffPoint) {
25
}
26
27
// ////////////////////////////////////////////////////////////////////
28
AirportPairKey::AirportPairKey
(
const
AirportPairKey
& iKey)
29
: _boardingPoint (iKey._boardingPoint),
30
_offPoint (iKey._offPoint) {
31
}
32
33
// ////////////////////////////////////////////////////////////////////
34
AirportPairKey::~AirportPairKey
() {
35
}
36
37
// ////////////////////////////////////////////////////////////////////
38
void
AirportPairKey::toStream
(std::ostream& ioOut)
const
{
39
ioOut <<
"AirportPairKey: "
<<
toString
() << std::endl;
40
}
41
42
// ////////////////////////////////////////////////////////////////////
43
void
AirportPairKey::fromStream
(std::istream& ioIn) {
44
}
45
46
// ////////////////////////////////////////////////////////////////////
47
const
std::string
AirportPairKey::toString
()
const
{
48
std::ostringstream oStr;
49
oStr << _boardingPoint <<
DEFAULT_KEY_SUB_FLD_DELIMITER
50
<<
" "
<< _offPoint;
51
return
oStr.str();
52
}
53
54
}
BasConst_BomDisplay.hpp
BasConst_Inventory.hpp
AirportPairKey.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DEFAULT_KEY_SUB_FLD_DELIMITER
const std::string DEFAULT_KEY_SUB_FLD_DELIMITER
stdair::DEFAULT_DESTINATION
const AirportCode_T DEFAULT_DESTINATION
stdair::DEFAULT_ORIGIN
const AirportCode_T DEFAULT_ORIGIN
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition
stdair_basic_types.hpp:22
stdair::AirportPairKey::toString
const std::string toString() const
Definition
AirportPairKey.cpp:47
stdair::AirportPairKey::~AirportPairKey
~AirportPairKey()
Definition
AirportPairKey.cpp:34
stdair::AirportPairKey::AirportPairKey
AirportPairKey(const stdair::AirportCode_T &, const stdair::AirportCode_T &)
Definition
AirportPairKey.cpp:22
stdair::AirportPairKey::fromStream
void fromStream(std::istream &ioIn)
Definition
AirportPairKey.cpp:43
stdair::AirportPairKey::toStream
void toStream(std::ostream &ioOut) const
Definition
AirportPairKey.cpp:38
Generated for StdAir by
1.17.0