From: g0dil Date: Wed, 24 Jun 2009 16:40:50 +0000 (+0000) Subject: Packets: Add StringParser ostream operation X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;p=senf.git Packets: Add StringParser ostream operation git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1237 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/StringParser.cci b/Packets/StringParser.cci index 7d1119b..53966af 100644 --- a/Packets/StringParser.cci +++ b/Packets/StringParser.cci @@ -66,6 +66,12 @@ prefix_ senf::StringParser const & senf::StringParser::operator=(value_type othe value(other); return *this; } +prefix_ std::ostream & senf::operator<<(std::ostream & os, StringParser const & value) +{ + os << value.value(); + return os; +} + ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_ diff --git a/Packets/StringParser.hh b/Packets/StringParser.hh index 5bae1a4..bc0ffb2 100644 --- a/Packets/StringParser.hh +++ b/Packets/StringParser.hh @@ -54,6 +54,8 @@ namespace senf { operator value_type() const; StringParser const & operator=(value_type other); }; + + std::ostream & operator<<(std::ostream & os, StringParser const & value); }