C++ Object Relational Mapping library
Provides an archive to read from portable binary files. More...
|Portable binary input archive using little endian format. More...|
|struct||eos::portable_iarchive::dummy< int >|
< portable_iarchive >
Provides an archive to read from portable binary files.
This archive (pair) brings the advantanges of binary streams to the cross platform boost::serialization user. While being almost as fast as the native binary archive it allows its files to be exchanged between cpu architectures using different byte order (endianness). Speaking of speed: in serializing numbers the (portable) binary approach is approximately ten times faster than the ascii implementation that is inherently portable!
Based on the portable archive example by Robert Ramey this implementation uses Beman Dawes endian library and fp_utilities from Johan Rade, both being in boost since 1.36. Prior to that you need to add them both (header only) to your boost directory before you're able to use the archives provided. Our archives have been tested successfully for boost versions 1.33 to 1.38!
Definition in file portable_iarchive.hpp.
|#define BOOST_ARCHIVE_CUSTOM_IARCHIVE_TYPES eos::portable_iarchive|