X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cci;h=833b8b683ea2556e6585fe90f4540050a83bd170;hb=63b650afb727cce067817ce9451eecb932446bf3;hp=e138ec263607bdafb7952ba15ae1e87cf7806cc5;hpb=70256cc93f59f5d2c9b3428775a181e5e225bfc5;p=senf.git diff --git a/Socket/SocketHandle.cci b/Socket/SocketHandle.cci index e138ec2..833b8b6 100644 --- a/Socket/SocketHandle.cci +++ b/Socket/SocketHandle.cci @@ -1,9 +1,9 @@ // $Id$ // -// Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Copyright (C) 2006 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -21,13 +21,13 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief senf::SocketHandle inline non-template implementation + \brief SocketHandle inline non-template implementation */ #include "SocketHandle.ih" // Custom includes -#include "Utils/Exception.hh" +#include "../Utils/Exception.hh" #include "SocketProtocol.hh" #define prefix_ inline @@ -61,14 +61,12 @@ prefix_ bool senf::SocketBody::isServer() } /////////////////////////////////////////////////////////////////////////// -// senf::detail::ConvertibleString +// senf::detail::StreamableString -prefix_ senf::detail::ConvertibleString::ConvertibleString() -{} - -prefix_ senf::detail::ConvertibleString::ConvertibleString(bool v) - : std::string(v ? "true" : "false") -{} +prefix_ senf::detail::StreamableString & senf::detail::StreamableString::operator<<(bool v) +{ + return (*this) << std::string(v ? "true" : "false"); +} ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_ @@ -76,5 +74,10 @@ prefix_ senf::detail::ConvertibleString::ConvertibleString(bool v) // 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: