MIRA
Public Member Functions | Protected Member Functions | List of all members
StreamAccessMixinBase< BinaryStream > Class Template Reference

Base for buffered/unbuffered stream access. More...

#include <serialization/BinarySerializer.h>

Inheritance diagram for StreamAccessMixinBase< BinaryStream >:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

 StreamAccessMixinBase (typename BinaryStream::streambuffer_pointer buffer)
 
 StreamAccessMixinBase (BinaryStream &stream)
 
BinaryStream & stream ()
 Get access to the read/write stream (direct reference to underlying stream). More...
 

Detailed Description

template<typename BinaryStream>
class mira::StreamAccessMixinBase< BinaryStream >

Base for buffered/unbuffered stream access.

Used by BinarySerializer and BinaryDeserializer.

Constructor & Destructor Documentation

◆ StreamAccessMixinBase() [1/2]

StreamAccessMixinBase ( typename BinaryStream::streambuffer_pointer  buffer)
inlineprotected

◆ StreamAccessMixinBase() [2/2]

StreamAccessMixinBase ( BinaryStream &  stream)
inlineprotected

Member Function Documentation

◆ reassign()

void reassign ( typename BinaryStream::streambuffer_pointer  buffer)
inline

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 ( )
inlineprotected

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


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