MIRA
Classes | Typedefs | Functions
Streams


For detailed information see Streams. More...

Collaboration diagram for Streams:

Classes

class  BinaryIosBase
 Helper class that is a base for binaryostream and binaryistream in the same way as ios_base is a base of ostream and istream. More...
 
class  BinaryBufferStreamBase
 Although this class is not a template we must keep its methods inline for performance reasons! write() and read() are called very often! More...
 
class  BinaryOstream< StreamUnderlay >
 Output stream adapter that can be assigned to any output stream and allows binary output using the << stream operators. More...
 
class  BinaryIstream< StreamUnderlay >
 Input stream adapter that can be assigned to any input stream and allows binary input using the >> stream operators. More...
 
class  BufferStream
 A stream class for input and output of data to/from a wrapped Buffer. More...
 
class  NumericalOstream
 Numerical stream adapter that can be assigned to any output stream and allows streaming of numerical values. More...
 
class  NumericalIstream
 Numerical stream adapter that can be assigned to any input stream and allows streaming of numerical values. More...
 

Typedefs

typedef BinaryOstream< std::basic_ostream< char, std::char_traits< char > > > BinaryStlOstream
 Typedef for binary output streams based on STL streams. More...
 
typedef BinaryOstream< BinaryBufferStreamBaseBinaryBufferOstream
 Typedef for binary output streams based on a Buffer. More...
 
typedef BinaryIstream< std::basic_istream< char, std::char_traits< char > > > BinaryStlIstream
 Typedef for binary input streams based on STL streams. More...
 
typedef BinaryIstream< BinaryBufferStreamBaseBinaryBufferIstream
 Typedef for binary input streams based on a Buffer. More...
 

Functions

BinaryIosBasenet (BinaryIosBase &stream)
 Manipulators: More...
 
BinaryIosBasehost (BinaryIosBase &stream)
 Manipulator that sets a binary input/output stream into host byte order mode and can be used to reset a previous set network byte order mode. More...
 

Detailed Description


For detailed information see Streams.

Typedef Documentation

◆ BinaryStlOstream

typedef BinaryOstream<std::basic_ostream<char, std::char_traits<char> > > BinaryStlOstream

Typedef for binary output streams based on STL streams.

See BinaryOstream for details.

◆ BinaryBufferOstream

Typedef for binary output streams based on a Buffer.

This is up to one magnitude faster than when using STL streams. See BinaryOstream for details.

◆ BinaryStlIstream

typedef BinaryIstream<std::basic_istream<char, std::char_traits<char> > > BinaryStlIstream

Typedef for binary input streams based on STL streams.

See BinaryIstream for details.

◆ BinaryBufferIstream

Typedef for binary input streams based on a Buffer.

This is up to one magnitude faster than when using STL streams. See BinaryIstream for details.

Function Documentation

◆ net()

BinaryIosBase& mira::net ( BinaryIosBase stream)
inline

Manipulators:

Manipulator that sets a binary input/output stream into network byte order mode.

Example:

s << net << 12345678;

◆ host()

BinaryIosBase& mira::host ( BinaryIosBase stream)
inline

Manipulator that sets a binary input/output stream into host byte order mode and can be used to reset a previous set network byte order mode.

The host byte order mode is the default.

Example:

s << host << 12345678;