Packets: Add StringParser ostream operation
g0dil [Wed, 24 Jun 2009 16:40:50 +0000 (16:40 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1237 270642c3-0616-0410-b53a-bc976706d245

Packets/StringParser.cci
Packets/StringParser.hh

index 7d1119b..53966af 100644 (file)
@@ -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_
 
index 5bae1a4..bc0ffb2 100644 (file)
@@ -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);
     
 }