1.00.20
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
SegmentPeriodKey.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <sstream>
6
// StdAir
7
#include <
stdair/bom/SegmentPeriodKey.hpp
>
8
9
namespace
stdair
{
10
11
// ////////////////////////////////////////////////////////////////////
12
SegmentPeriodKey::SegmentPeriodKey (
const
AirportCode_T
& iBoardingPoint,
13
const
AirportCode_T
& iOffPoint)
14
: _boardingPoint (iBoardingPoint), _offPoint (iOffPoint) {
15
}
16
17
// ////////////////////////////////////////////////////////////////////
18
SegmentPeriodKey::SegmentPeriodKey (
const
SegmentPeriodKey& iKey)
19
: _boardingPoint (iKey._boardingPoint), _offPoint (iKey._offPoint) {
20
}
21
22
// ////////////////////////////////////////////////////////////////////
23
SegmentPeriodKey::~SegmentPeriodKey
() {
24
}
25
26
// ////////////////////////////////////////////////////////////////////
27
void
SegmentPeriodKey::toStream
(std::ostream& ioOut)
const
{
28
ioOut <<
"SegmentPeriodKey: "
<<
toString
() << std::endl;
29
}
30
31
// ////////////////////////////////////////////////////////////////////
32
void
SegmentPeriodKey::fromStream
(std::istream& ioIn) {
33
}
34
35
// ////////////////////////////////////////////////////////////////////
36
const
std::string
SegmentPeriodKey::toString
()
const
{
37
std::ostringstream oStr;
38
oStr << _boardingPoint <<
"-"
<< _offPoint;
39
return
oStr.str();
40
}
41
42
}
SegmentPeriodKey.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition
stdair_basic_types.hpp:22
stdair::SegmentPeriodKey::toStream
void toStream(std::ostream &ioOut) const
Definition
SegmentPeriodKey.cpp:27
stdair::SegmentPeriodKey::toString
const std::string toString() const
Definition
SegmentPeriodKey.cpp:36
stdair::SegmentPeriodKey::~SegmentPeriodKey
~SegmentPeriodKey()
Definition
SegmentPeriodKey.cpp:23
stdair::SegmentPeriodKey::fromStream
void fromStream(std::istream &ioIn)
Definition
SegmentPeriodKey.cpp:32
Generated for StdAir by
1.13.2