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