X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cti;h=e93ec630b939fec3d6dd2b5fb08d93fcc5754a2d;hb=70256cc93f59f5d2c9b3428775a181e5e225bfc5;hp=dde5bf78fd8c63176fefb93bbb6cb47e905f0d17;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/SocketHandle.cti b/Socket/SocketHandle.cti index dde5bf7..e93ec63 100644 --- a/Socket/SocketHandle.cti +++ b/Socket/SocketHandle.cti @@ -20,7 +20,9 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of inline template functions +/** \file + \brief senf::SocketHandle inline template implementation + */ #include "SocketHandle.ih" @@ -34,15 +36,15 @@ template template -prefix_ satcom::lib::SocketHandle::SocketHandle(SocketHandle other, +prefix_ senf::SocketHandle::SocketHandle(SocketHandle other, typename IsCompatible::type *) : FileHandle(other) {} template template -prefix_ typename satcom::lib::SocketHandle::template IsCompatible::type const & -satcom::lib::SocketHandle::operator=(SocketHandle other) +prefix_ typename senf::SocketHandle::template IsCompatible::type const & +senf::SocketHandle::operator=(SocketHandle other) { assign(other); return *this; @@ -50,13 +52,13 @@ satcom::lib::SocketHandle::operator=(SocketHandle oth template prefix_ -satcom::lib::SocketHandle::SocketHandle(std::auto_ptr protocol, +senf::SocketHandle::SocketHandle(std::auto_ptr protocol, bool isServer) : FileHandle(std::auto_ptr(new SocketBody(protocol,isServer))) {} template -prefix_ satcom::lib::SocketHandle::SocketHandle(FileHandle other, bool isChecked) +prefix_ senf::SocketHandle::SocketHandle(FileHandle other, bool isChecked) : FileHandle(other) { BOOST_ASSERT( isChecked ); @@ -64,14 +66,14 @@ prefix_ satcom::lib::SocketHandle::SocketHandle(FileHandle other, } template -prefix_ satcom::lib::SocketBody & satcom::lib::SocketHandle::body() +prefix_ senf::SocketBody & senf::SocketHandle::body() { BOOST_ASSERT( dynamic_cast(&FileHandle::body()) ); return static_cast(FileHandle::body()); } template -prefix_ satcom::lib::SocketBody const & satcom::lib::SocketHandle::body() +prefix_ senf::SocketBody const & senf::SocketHandle::body() const { BOOST_ASSERT( dynamic_cast(&FileHandle::body()) ); @@ -79,28 +81,28 @@ prefix_ satcom::lib::SocketBody const & satcom::lib::SocketHandle: } template -prefix_ satcom::lib::SocketProtocol const & satcom::lib::SocketHandle::protocol() +prefix_ senf::SocketProtocol const & senf::SocketHandle::protocol() const { return body().protocol(); } template -prefix_ void satcom::lib::SocketHandle::assign(FileHandle other) +prefix_ void senf::SocketHandle::assign(FileHandle other) { FileHandle::operator=(other); } template -prefix_ satcom::lib::SocketHandle -satcom::lib::SocketHandle::cast_static(FileHandle handle) +prefix_ senf::SocketHandle +senf::SocketHandle::cast_static(FileHandle handle) { return SocketHandle(handle,true); } template -prefix_ satcom::lib::SocketHandle -satcom::lib::SocketHandle::cast_dynamic(FileHandle handle) +prefix_ senf::SocketHandle +senf::SocketHandle::cast_dynamic(FileHandle handle) { // throws bad_cast if the body is not a SocketBody SocketBody & body (dynamic_cast(FileHandle::body(handle))); @@ -110,7 +112,7 @@ satcom::lib::SocketHandle::cast_dynamic(FileHandle handle) } template -prefix_ Target satcom::lib::static_socket_cast(Source handle) +prefix_ Target senf::static_socket_cast(Source handle) { BOOST_STATIC_ASSERT(( boost::is_convertible::value && @@ -122,7 +124,7 @@ prefix_ Target satcom::lib::static_socket_cast(Source handle) } template -prefix_ Target satcom::lib::dynamic_socket_cast(Source handle) +prefix_ Target senf::dynamic_socket_cast(Source handle) { BOOST_STATIC_ASSERT(( boost::is_convertible::value && @@ -133,7 +135,7 @@ prefix_ Target satcom::lib::dynamic_socket_cast(Source handle) } template -prefix_ bool satcom::lib::check_socket_cast(Source handle) +prefix_ bool senf::check_socket_cast(Source handle) { BOOST_STATIC_ASSERT(( boost::is_convertible::value && @@ -156,14 +158,14 @@ prefix_ bool satcom::lib::check_socket_cast(Source handle) } template -prefix_ void satcom::lib::SocketHandle::state(SocketStateMap & map, unsigned lod) +prefix_ void senf::SocketHandle::state(SocketStateMap & map, unsigned lod) { map["handle"] = prettyName(typeid(*this)); body().state(map,lod); } template -prefix_ std::string satcom::lib::SocketHandle::dumpState(unsigned lod) +prefix_ std::string senf::SocketHandle::dumpState(unsigned lod) { SocketStateMap map; state(map,lod); @@ -171,10 +173,10 @@ prefix_ std::string satcom::lib::SocketHandle::dumpState(unsigned } /////////////////////////////////////////////////////////////////////////// -// satcom::lib::detail::ConvertibleString +// senf::detail::ConvertibleString template -prefix_ satcom::lib::detail::ConvertibleString::ConvertibleString(T const & other) +prefix_ senf::detail::ConvertibleString::ConvertibleString(T const & other) : std::string(boost::lexical_cast(other)) {} @@ -184,5 +186,5 @@ prefix_ satcom::lib::detail::ConvertibleString::ConvertibleString(T const & othe // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: