00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // STL 00005 #include <cassert> 00006 #include <sstream> 00007 // StdAir 00008 #include <stdair/basic/BasConst_Request.hpp> 00009 #include <stdair/service/Logger.hpp> 00010 #include <stdair/bom/PosChannel.hpp> 00011 00012 namespace stdair { 00013 00014 // //////////////////////////////////////////////////////////////////// 00015 PosChannel::PosChannel() 00016 : _key (DEFAULT_POS, 00017 DEFAULT_CHANNEL), 00018 _parent (NULL) { 00019 // That constructor is used by the serialisation process 00020 } 00021 00022 // //////////////////////////////////////////////////////////////////// 00023 PosChannel::PosChannel (const PosChannel& iPosChannel) 00024 : _key (iPosChannel.getKey()), _parent (NULL) { 00025 assert (false); 00026 } 00027 00028 // //////////////////////////////////////////////////////////////////// 00029 PosChannel::PosChannel (const Key_T& iKey) 00030 : _key (iKey), _parent (NULL) { 00031 } 00032 00033 // //////////////////////////////////////////////////////////////////// 00034 PosChannel::~PosChannel () { 00035 } 00036 00037 // //////////////////////////////////////////////////////////////////// 00038 std::string PosChannel::toString() const { 00039 std::ostringstream oStr; 00040 oStr << describeKey(); 00041 return oStr.str(); 00042 } 00043 }