X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cci;h=833b8b683ea2556e6585fe90f4540050a83bd170;hb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;hp=c62ccb4af6bb090e3f654c0137efc43a4025cf74;hpb=d0006132bfcb3ab442cf66b600ed3fad36f1ac2c;p=senf.git diff --git a/Socket/SocketHandle.cci b/Socket/SocketHandle.cci index c62ccb4..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 @@ -27,7 +27,7 @@ #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: