MIRA
Classes | Namespaces | Typedefs | Functions
BinaryStream.h File Reference

Contains the BinaryIStream and BinaryOStream classes for fast and efficient streaming of binary data. More...

#include <iostream>
#include <string.h>
#include <platform/Endian.h>
#include <utils/Buffer.h>
#include <utils/EnumToFlags.h>
#include <error/Exceptions.h>
Include dependency graph for BinaryStream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Typedefs

typedef BinaryOstream< std::basic_ostream< char, std::char_traits< char > > > BinaryStlOstream
 Typedef for binary output streams based on STL streams. More...
 
typedef BinaryOstream< BinaryBufferStreamBase > BinaryBufferOstream
 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< BinaryBufferStreamBase > BinaryBufferIstream
 Typedef for binary input streams based on a Buffer. More...
 

Functions

BinaryIosBase & net (BinaryIosBase &stream)
 Manipulators: More...
 
BinaryIosBase & host (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

Contains the BinaryIStream and BinaryOStream classes for fast and efficient streaming of binary data.

Contains the NumericalOstream and NumericalIstream classes for streaming of numerical values and correct handling of nan, inf, etc.

Modified on: 28.06.2010 for MIRA base

Author
Erik Einhorn
Date
2009/04/04
Author
Erik Einhorn
Date
2012/03/27