X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cti;h=604f45650b53428f8c65b12d6494f8711d02694f;hb=1ad3873b372da6187b1fbc645bf276287d2efb54;hp=08a3e4db5b00c563dd94a9b6f7ca944131bb67f0;hpb=494e197e719a49fba726d90f668c2d96c02c744b;p=senf.git diff --git a/Socket/SocketHandle.cti b/Socket/SocketHandle.cti index 08a3e4d..604f456 100644 --- a/Socket/SocketHandle.cti +++ b/Socket/SocketHandle.cti @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -21,7 +21,7 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief senf::SocketHandle inline template implementation + \brief SocketHandle inline template implementation */ #include "SocketHandle.ih" @@ -29,12 +29,16 @@ // Custom includes #include #include -#include "Utils/TypeInfo.hh" +#include "../Utils/TypeInfo.hh" #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// template +prefix_ senf::SocketHandle::SocketHandle() +{} + +template template prefix_ senf::SocketHandle::SocketHandle(SocketHandle other, typename IsCompatible::type *) @@ -51,7 +55,7 @@ senf::SocketHandle::operator=(SocketHandle other) } template -prefix_ +prefix_ senf::SocketHandle::SocketHandle(std::auto_ptr protocol, bool isServer) : FileHandle(std::auto_ptr(new SocketBody(protocol,isServer))) @@ -165,7 +169,7 @@ prefix_ void senf::SocketHandle::state(SocketStateMap & map, unsig // automatically include the SocketPolicy template parameter in // the type name and therefore show the \e static policy of the // socket handle. - map["handle"] = prettyName(typeid(*this)); + map["handle"] << prettyName(typeid(*this)); body().state(map,lod); } @@ -177,19 +181,16 @@ prefix_ std::string senf::SocketHandle::dumpState(unsigned lod) return detail::dumpState(map); } -/////////////////////////////////////////////////////////////////////////// -// senf::detail::ConvertibleString - -template -prefix_ senf::detail::ConvertibleString::ConvertibleString(T const & other) - : std::string(boost::lexical_cast(other)) -{} - ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_ // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: