Bitstream Interpretation Library (BIL)  0.1
Namespaces | Macros | Functions
BinarySerialization.hpp File Reference

Contains functions for binary stream reading and writing. More...

#include <istream>
#include <ostream>
#include <map>
#include <string>
#include <vector>
#include <boost/type_traits/is_pod.hpp>
#include <boost/utility/enable_if.hpp>
#include <exception/IOException.hpp>
Include dependency graph for BinarySerialization.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bil

Macros

#define BIL_BINARYSERIALIZATION_HPP

Functions

template<typename T >
boost::enable_if
< boost::is_pod< T >, void >
::type 
bil::writeBinary (const T &data, std::ostream &outputStream)
 Writes POD data into a binary stream.
template<typename T >
boost::enable_if
< boost::is_pod< T >, void >
::type 
bil::writeBinary (const std::vector< T > &data, std::ostream &outputStream)
 Writes POD data from a std::vector into a binary stream.
template<typename K , typename V , typename C , typename A >
void bil::writeBinary (const std::map< K, V, C, A > &data, std::ostream &outputStream)
 Writes data from a std::map into a binary stream.
void bil::writeBinary (const std::string &data, std::ostream &outputStream)
 Writes data from a std::string into a binary stream.
template<typename T >
boost::enable_if
< boost::is_pod< T >, void >
::type 
bil::readBinary (T &data, std::istream &inputStream)
 Reads POD data from a binary stream.
template<typename T >
boost::enable_if
< boost::is_pod< T >, void >
::type 
bil::readBinary (std::vector< T > &data, std::istream &inputStream)
 Reads POD data into a std::vector from a binary stream.
template<typename K , typename V , typename C , typename A >
void bil::readBinary (std::map< K, V, C, A > &data, std::istream &inputStream)
 Reads data into a std::map from a binary stream.
void bil::readBinary (std::string &data, std::istream &inputStream)
 Reads data into a std::string from a binary stream.

Detailed Description

Contains functions for binary stream reading and writing.

Definition in file BinarySerialization.hpp.


Macro Definition Documentation

#define BIL_BINARYSERIALIZATION_HPP

Definition at line 8 of file BinarySerialization.hpp.