You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by th...@apache.org on 2012/05/16 10:21:01 UTC

svn commit: r1339054 - in /avro/trunk: CHANGES.txt lang/c++/api/Stream.hh

Author: thiru
Date: Wed May 16 08:21:01 2012
New Revision: 1339054

URL: http://svn.apache.org/viewvc?rev=1339054&view=rev
Log:
AVRO-1078. ostreamOutputStream declaration missing in C++ API

Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/lang/c++/api/Stream.hh

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1339054&r1=1339053&r2=1339054&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Wed May 16 08:21:01 2012
@@ -51,6 +51,8 @@ Avro 1.6.3 (5 March 2012)
 
     AVRO-1077. Missing 'inline' for union set function. (thiru)
 
+    AVRO-1078. ostreamOutputStream declaration missing in C++ API (thiru)
+
   IMPROVEMENTS
 
     AVRO-1030. Fix a broken link in the documentation.

Modified: avro/trunk/lang/c++/api/Stream.hh
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c%2B%2B/api/Stream.hh?rev=1339054&r1=1339053&r2=1339054&view=diff
==============================================================================
--- avro/trunk/lang/c++/api/Stream.hh (original)
+++ avro/trunk/lang/c++/api/Stream.hh Wed May 16 08:21:01 2012
@@ -157,7 +157,19 @@ AVRO_DECL std::auto_ptr<OutputStream> fi
 AVRO_DECL std::auto_ptr<InputStream> fileInputStream(const char* filename,
     size_t bufferSize = 8 * 1024);
 
+/**
+ * Returns a new OutputStream whose contents will be sent to the given
+ * std::ostream. The std::ostream object should outlive the returned
+ * OutputStream.
+ */
+AVRO_DECL std::auto_ptr<OutputStream> ostreamOutputStream(std::ostream& os,
+    size_t bufferSize = 8 * 1024);
 
+/**
+ * Returns a new InputStream whose contents come from the given
+ * std::istream. The std::istream object should outlive the returned
+ * InputStream.
+ */
 AVRO_DECL std::auto_ptr<InputStream> istreamInputStream(std::istream& in,
     size_t bufferSize = 8 * 1024);