8 #ifndef _THRIFT_SERVER_WRITER_H_
9 #define _THRIFT_SERVER_WRITER_H_
12 #include <boost/shared_ptr.hpp>
13 #include <thrift/protocol/TProtocol.h>
18 template <
class data_type,
class transport_type,
class protocol_type>
21 thrift_server_writer(std::string name, boost::shared_ptr<transport_type> t, boost::shared_ptr<protocol_type> p)
24 inline void write(data_type& d) {
25 using namespace apache::thrift::protocol;
28 m_protocol->writeFieldBegin(
"success", T_STRUCT, 0);
47 #endif // _THRIFT_SERVER_WRITER_H_