$treeview $search $mathjax
00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // STL 00005 #include <sstream> 00006 // StdAir 00007 #include <stdair/bom/SegmentPeriodKey.hpp> 00008 00009 namespace stdair { 00010 00011 // //////////////////////////////////////////////////////////////////// 00012 SegmentPeriodKey::SegmentPeriodKey (const AirportCode_T& iBoardingPoint, 00013 const AirportCode_T& iOffPoint) 00014 : _boardingPoint (iBoardingPoint), _offPoint (iOffPoint) { 00015 } 00016 00017 // //////////////////////////////////////////////////////////////////// 00018 SegmentPeriodKey::SegmentPeriodKey (const SegmentPeriodKey& iKey) 00019 : _boardingPoint (iKey._boardingPoint), _offPoint (iKey._offPoint) { 00020 } 00021 00022 // //////////////////////////////////////////////////////////////////// 00023 SegmentPeriodKey::~SegmentPeriodKey () { 00024 } 00025 00026 // //////////////////////////////////////////////////////////////////// 00027 void SegmentPeriodKey::toStream (std::ostream& ioOut) const { 00028 ioOut << "SegmentPeriodKey: " << toString() << std::endl; 00029 } 00030 00031 // //////////////////////////////////////////////////////////////////// 00032 void SegmentPeriodKey::fromStream (std::istream& ioIn) { 00033 } 00034 00035 // //////////////////////////////////////////////////////////////////// 00036 const std::string SegmentPeriodKey::toString() const { 00037 std::ostringstream oStr; 00038 oStr << _boardingPoint << "-" << _offPoint; 00039 return oStr.str(); 00040 } 00041 00042 }