StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
FlightPeriodKey.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
4 // STDAIR
6 
7 namespace 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  // ////////////////////////////////////////////////////////////////////
22  }
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 }
stdair::PeriodStruct
Definition: PeriodStruct.hpp:19
stdair::FlightPeriodKey
Definition: FlightPeriodKey.hpp:13
stdair::FlightPeriodKey::toStream
void toStream(std::ostream &ioOut) const
Definition: FlightPeriodKey.cpp:25
stdair::FlightPeriodKey::toString
const std::string toString() const
Definition: FlightPeriodKey.cpp:34
stdair::FlightPeriodKey::~FlightPeriodKey
~FlightPeriodKey()
Definition: FlightPeriodKey.cpp:21
stdair::FlightPeriodKey::fromStream
void fromStream(std::istream &ioIn)
Definition: FlightPeriodKey.cpp:30
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::FlightNumber_T
unsigned short FlightNumber_T
Definition: stdair_basic_types.hpp:34
FlightPeriodKey.hpp
stdair::PeriodStruct::describeShort
const std::string describeShort() const
Definition: PeriodStruct.cpp:31