$treeview $search $mathjax
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/service/Logger.hpp> 00010 #include <stdair/bom/AirportPair.hpp> 00011 00012 namespace stdair { 00013 00014 // //////////////////////////////////////////////////////////////////// 00015 AirportPair::AirportPair() 00016 : _key (DEFAULT_ORIGIN, DEFAULT_DESTINATION), 00017 _parent (NULL) { 00018 // That constructor is used by the serialisation process 00019 } 00020 00021 // //////////////////////////////////////////////////////////////////// 00022 AirportPair::AirportPair (const AirportPair& iAirportPair) 00023 : _key (iAirportPair.getKey()), _parent (NULL) { 00024 } 00025 00026 // //////////////////////////////////////////////////////////////////// 00027 AirportPair::AirportPair (const Key_T& iKey) 00028 : _key (iKey), _parent (NULL) { 00029 } 00030 00031 // //////////////////////////////////////////////////////////////////// 00032 AirportPair::~AirportPair () { 00033 } 00034 00035 // //////////////////////////////////////////////////////////////////// 00036 std::string AirportPair::toString() const { 00037 std::ostringstream oStr; 00038 oStr << describeKey(); 00039 return oStr.str(); 00040 } 00041 } 00042 00043