LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
LogCabin::Core::ProtoBuf::OutputStream Struct Reference

An abstract stream to which ProtoBufs may be written. More...

#include <ProtoBuf.h>

Inheritance diagram for LogCabin::Core::ProtoBuf::OutputStream:
LogCabin::Storage::SnapshotFile::Writer

List of all members.

Public Member Functions

virtual ~OutputStream ()
 Destructor.
virtual uint64_t getBytesWritten () const =0
 Return the number of bytes written so far.
virtual void writeMessage (const google::protobuf::Message &message)=0
 Write the given ProtoBuf message to the stream.
virtual void writeRaw (const void *data, uint64_t length)=0
 Write some raw bytes to the stream.

Detailed Description

An abstract stream to which ProtoBufs may be written.

Definition at line 181 of file ProtoBuf.h.


Constructor & Destructor Documentation

Destructor.

Definition at line 185 of file ProtoBuf.h.


Member Function Documentation

virtual uint64_t LogCabin::Core::ProtoBuf::OutputStream::getBytesWritten ( ) const [pure virtual]

Return the number of bytes written so far.

Implemented in LogCabin::Storage::SnapshotFile::Writer.

virtual void LogCabin::Core::ProtoBuf::OutputStream::writeMessage ( const google::protobuf::Message &  message) [pure virtual]

Write the given ProtoBuf message to the stream.

Implemented in LogCabin::Storage::SnapshotFile::Writer.

virtual void LogCabin::Core::ProtoBuf::OutputStream::writeRaw ( const void *  data,
uint64_t  length 
) [pure virtual]

Write some raw bytes to the stream.

Implemented in LogCabin::Storage::SnapshotFile::Writer.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines