1.00.10
C++ Standard Airline IT Object Library
LegDateKey.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/bom/LegDateKey.hpp
>
10
11
namespace
stdair
{
12
13
// ////////////////////////////////////////////////////////////////////
14
LegDateKey::LegDateKey() : _boardingPoint (
DEFAULT_ORIGIN
) {
15
assert (
false
);
16
}
17
18
// ////////////////////////////////////////////////////////////////////
19
LegDateKey::LegDateKey (
const
AirportCode_T
& iBoardingPoint)
20
: _boardingPoint (iBoardingPoint) {
21
}
22
23
// ////////////////////////////////////////////////////////////////////
24
LegDateKey::LegDateKey (
const
LegDateKey
& iKey)
25
: _boardingPoint (iKey._boardingPoint) {
26
}
27
28
// ////////////////////////////////////////////////////////////////////
29
LegDateKey::~LegDateKey
() {
30
}
31
32
// ////////////////////////////////////////////////////////////////////
33
void
LegDateKey::toStream
(std::ostream& ioOut)
const
{
34
ioOut <<
"LegDateKey: "
<<
toString
();
35
}
36
37
// ////////////////////////////////////////////////////////////////////
38
void
LegDateKey::fromStream
(std::istream& ioIn) {
39
}
40
41
// ////////////////////////////////////////////////////////////////////
42
const
std::string
LegDateKey::toString
()
const
{
43
std::ostringstream oStr;
44
oStr << _boardingPoint;
45
return
oStr.str();
46
}
47
48
}
LegDateKey.hpp
stdair::LegDateKey::toStream
void toStream(std::ostream &ioOut) const
Definition:
LegDateKey.cpp:33
stdair::LegDateKey::~LegDateKey
~LegDateKey()
Definition:
LegDateKey.cpp:29
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition:
stdair_basic_types.hpp:22
stdair::DEFAULT_ORIGIN
const AirportCode_T DEFAULT_ORIGIN
stdair
Handle on the StdAir library context.
Definition:
BasChronometer.cpp:9
stdair::LegDateKey::toString
const std::string toString() const
Definition:
LegDateKey.cpp:42
stdair::LegDateKey::fromStream
void fromStream(std::istream &ioIn)
Definition:
LegDateKey.cpp:38
BasConst_Inventory.hpp
stdair::LegDateKey
Definition:
LegDateKey.hpp:16
Generated for StdAir by
1.8.18