StdAir Logo  1.00.17
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
FlightPeriodKey.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STDAIR
6
7namespace stdair {
8
9 // ////////////////////////////////////////////////////////////////////
10 FlightPeriodKey::FlightPeriodKey (const FlightNumber_T& iFlightNumber,
11 const PeriodStruct& iPeriod)
12 : _flightNumber (iFlightNumber), _period (iPeriod) {
13 }
14
15 // ////////////////////////////////////////////////////////////////////
16 FlightPeriodKey::FlightPeriodKey (const FlightPeriodKey& iKey)
17 : _flightNumber (iKey._flightNumber), _period (iKey._period) {
18 }
19
20 // ////////////////////////////////////////////////////////////////////
23
24 // ////////////////////////////////////////////////////////////////////
25 void FlightPeriodKey::toStream (std::ostream& ioOut) const {
26 ioOut << "FlightPeriodKey: " << toString() << std::endl;
27 }
28
29 // ////////////////////////////////////////////////////////////////////
30 void FlightPeriodKey::fromStream (std::istream& ioIn) {
31 }
32
33 // ////////////////////////////////////////////////////////////////////
34 const std::string FlightPeriodKey::toString() const {
35 std::ostringstream oStr;
36 oStr << _flightNumber << ", " << _period.describeShort();
37 return oStr.str();
38 }
39
40}
Handle on the StdAir library context.
unsigned short FlightNumber_T
void toStream(std::ostream &ioOut) const
void fromStream(std::istream &ioIn)
const std::string toString() const