MIRA
Public Types | Public Member Functions | Protected Member Functions | List of all members
StreamAccessMixin< BinaryStream, true > Class Template Reference

Stream access buffered through BinaryBufferOstream, can be used to work around limitations of underlying stream (in particular, missing support of tellp/seekp). More...

#include <serialization/BinarySerializer.h>

Inheritance diagram for StreamAccessMixin< BinaryStream, true >:
Inheritance graph
[legend]

Public Types

typedef BinaryBufferOstream StreamType
 The type of stream the serializer writes to (the buffer stream here). More...
 

Public Member Functions

void reassign (typename BinaryStream::streambuffer_pointer buffer)
 Reassigns the specified stream buffer to this (serializer). More...
 

Protected Member Functions

 StreamAccessMixin (typename BinaryStream::streambuffer_pointer buffer)
 
 StreamAccessMixin (BinaryStream &stream)
 
 ~StreamAccessMixin ()
 
BinaryBufferOstreamstream ()
 Get access to the read/write stream, returns reference to buffer stream (overriding the base class' stream() method which provides access to underlying stream). More...
 
void flushBuffer ()
 Flush buffer stream to underlying stream. More...
 

Detailed Description

template<typename BinaryStream>
class mira::StreamAccessMixin< BinaryStream, true >

Stream access buffered through BinaryBufferOstream, can be used to work around limitations of underlying stream (in particular, missing support of tellp/seekp).

Member Typedef Documentation

◆ StreamType

The type of stream the serializer writes to (the buffer stream here).

Constructor & Destructor Documentation

◆ StreamAccessMixin() [1/2]

StreamAccessMixin ( typename BinaryStream::streambuffer_pointer  buffer)
inlineprotected

◆ StreamAccessMixin() [2/2]

StreamAccessMixin ( BinaryStream &  stream)
inlineprotected

◆ ~StreamAccessMixin()

~StreamAccessMixin ( )
inlineprotected

Member Function Documentation

◆ stream()

BinaryBufferOstream& stream ( )
inlineprotected

Get access to the read/write stream, returns reference to buffer stream (overriding the base class' stream() method which provides access to underlying stream).

◆ flushBuffer()

void flushBuffer ( )
inlineprotected

Flush buffer stream to underlying stream.

◆ reassign()

void reassign ( typename BinaryStream::streambuffer_pointer  buffer)
inlineinherited

Reassigns the specified stream buffer to this (serializer).

The stream buffer usually is specified in the constructor. This method can be used to change the assigned buffer.


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