StdAir Logo  1.00.12
C++ Standard Airline IT Object Library
SegmentPeriodKey.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <sstream>
6// StdAir
8
9namespace 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 // ////////////////////////////////////////////////////////////////////
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}
Handle on the StdAir library context.
LocationCode_T AirportCode_T
void toStream(std::ostream &ioOut) const
const std::string toString() const
void fromStream(std::istream &ioIn)