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

Direct stream access. More...

#include <serialization/BinarySerializer.h>

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

Public Types

typedef BinaryStream StreamType
 The type of stream the serializer writes to (the actual output 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)
 
void flushBuffer ()
 Flush stream buffer (write to underlying stream), nothing to do for unbuffered access. More...
 
BinaryStream & stream ()
 Get access to the read/write stream (direct reference to underlying stream). More...
 

Detailed Description

template<typename BinaryStream, bool Buffered>
class mira::StreamAccessMixin< BinaryStream, Buffered >

Direct stream access.

Member Typedef Documentation

◆ StreamType

typedef BinaryStream StreamType

The type of stream the serializer writes to (the actual output stream here)

Constructor & Destructor Documentation

◆ StreamAccessMixin() [1/2]

StreamAccessMixin ( typename BinaryStream::streambuffer_pointer  buffer)
inlineprotected

◆ StreamAccessMixin() [2/2]

StreamAccessMixin ( BinaryStream &  stream)
inlineprotected

Member Function Documentation

◆ flushBuffer()

void flushBuffer ( )
inlineprotected

Flush stream buffer (write to underlying stream), nothing to do for unbuffered access.

◆ 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.

◆ stream()

BinaryStream& stream ( )
inlineprotectedinherited

Get access to the read/write stream (direct reference to underlying stream).


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