00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // STDAIR 00005 #include <stdair/bom/FlightPeriodKey.hpp> 00006 00007 namespace stdair { 00008 00009 // //////////////////////////////////////////////////////////////////// 00010 FlightPeriodKey::FlightPeriodKey (const FlightNumber_T& iFlightNumber, 00011 const PeriodStruct& iPeriod) 00012 : _flightNumber (iFlightNumber), _period (iPeriod) { 00013 } 00014 00015 // //////////////////////////////////////////////////////////////////// 00016 FlightPeriodKey::FlightPeriodKey (const FlightPeriodKey& iKey) 00017 : _flightNumber (iKey._flightNumber), _period (iKey._period) { 00018 } 00019 00020 // //////////////////////////////////////////////////////////////////// 00021 FlightPeriodKey::~FlightPeriodKey () { 00022 } 00023 00024 // //////////////////////////////////////////////////////////////////// 00025 void FlightPeriodKey::toStream (std::ostream& ioOut) const { 00026 ioOut << "FlightPeriodKey: " << toString() << std::endl; 00027 } 00028 00029 // //////////////////////////////////////////////////////////////////// 00030 void FlightPeriodKey::fromStream (std::istream& ioIn) { 00031 } 00032 00033 // //////////////////////////////////////////////////////////////////// 00034 const std::string FlightPeriodKey::toString() const { 00035 std::ostringstream oStr; 00036 oStr << _flightNumber << ", " << _period.describeShort(); 00037 return oStr.str(); 00038 } 00039 00040 }