You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by Apache Wiki <wi...@apache.org> on 2009/03/20 16:38:24 UTC

[Thrift Wiki] Update of "C++StreamTransport" by AlexandrePatry

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change notification.

The following page has been changed by AlexandrePatry:
http://wiki.apache.org/thrift/C++StreamTransport

New page:
= C++ Streams Transport =

As I had problem with the `TFileTransport` (those described at http://publists.facebook.com/pipermail/thrift/2008-January/000357.html) I wrote a transport for C++ streams.

There are three classes of interest:

 InputStreamTransport:: Transport for `std::istream`.
 OutputStreamTransport:: Transport for `std::ostream`.
 StreamTransport:: Transport for `std::stream`.

All of these classes have a constructor taking a `boost::shared_ptr<StreamT>` in parameter and can be used as any other thrift transports.

== StreamTransport.hpp ==

{{attachment:StreamTransport.hpp}}