GRPC C++  0.11.0.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions
grpc::WriterInterface< W > Class Template Referenceabstract

An interface that can be fed a sequence of messages of type W. More...

#include <sync_stream.h>

Public Member Functions

virtual ~WriterInterface ()
 
virtual bool Write (const W &msg, const WriteOptions &options)=0
 Blocking write msg to the stream with options. More...
 
bool Write (const W &msg)
 Blocking write msg to the stream with default options. More...
 

Detailed Description

template<class W>
class grpc::WriterInterface< W >

An interface that can be fed a sequence of messages of type W.

Constructor & Destructor Documentation

template<class W >
virtual grpc::WriterInterface< W >::~WriterInterface ( )
inlinevirtual

Member Function Documentation

template<class W >
virtual bool grpc::WriterInterface< W >::Write ( const W &  msg,
const WriteOptions options 
)
pure virtual

Blocking write msg to the stream with options.

Parameters
msgThe message to be written to the stream.
optionsOptions affecting the write operation.
Returns
true on success, false when the stream has been closed.

Implemented in grpc::ServerReaderWriter< R, W >, grpc::ServerWriter< W >, grpc::ClientReaderWriter< R, W >, and grpc::ClientWriter< W >.

template<class W >
bool grpc::WriterInterface< W >::Write ( const W &  msg)
inline

Blocking write msg to the stream with default options.

Parameters
msgThe message to be written to the stream.
Returns
true on success, false when the stream has been closed.

The documentation for this class was generated from the following file: