Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Thrift Transport for C++ Streams

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

indent

 Transport for {{std::istream}}.

 

OutputStreamTransport

indent
 Transport for {{std::ostream}}.
 

StreamTransport

indent
 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

StreamTransport.hpp!

Updates

  1. Initial version 2. Changed license and facebook namespace reference to apache.