00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // STL 00005 #include <cassert> 00006 #include <sstream> 00007 // StdAir 00008 #include <stdair/basic/BasConst_Inventory.hpp> 00009 #include <stdair/bom/LegDateKey.hpp> 00010 00011 namespace stdair { 00012 00013 // //////////////////////////////////////////////////////////////////// 00014 LegDateKey::LegDateKey() : _boardingPoint (DEFAULT_ORIGIN) { 00015 assert (false); 00016 } 00017 00018 // //////////////////////////////////////////////////////////////////// 00019 LegDateKey::LegDateKey (const AirportCode_T& iBoardingPoint) 00020 : _boardingPoint (iBoardingPoint) { 00021 } 00022 00023 // //////////////////////////////////////////////////////////////////// 00024 LegDateKey::LegDateKey (const LegDateKey& iKey) 00025 : _boardingPoint (iKey._boardingPoint) { 00026 } 00027 00028 // //////////////////////////////////////////////////////////////////// 00029 LegDateKey::~LegDateKey () { 00030 } 00031 00032 // //////////////////////////////////////////////////////////////////// 00033 void LegDateKey::toStream (std::ostream& ioOut) const { 00034 ioOut << "LegDateKey: " << toString(); 00035 } 00036 00037 // //////////////////////////////////////////////////////////////////// 00038 void LegDateKey::fromStream (std::istream& ioIn) { 00039 } 00040 00041 // //////////////////////////////////////////////////////////////////// 00042 const std::string LegDateKey::toString() const { 00043 std::ostringstream oStr; 00044 oStr << _boardingPoint; 00045 return oStr.str(); 00046 } 00047 00048 }