File indexing completed on 2025-01-18 09:28:30
0001 #ifndef BOOST_ARCHIVE_BINARY_IARCHIVE_HPP
0002 #define BOOST_ARCHIVE_BINARY_IARCHIVE_HPP
0003
0004
0005 #if defined(_MSC_VER)
0006 # pragma once
0007 #endif
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include <istream>
0020 #include <boost/archive/binary_iarchive_impl.hpp>
0021 #include <boost/archive/detail/register_archive.hpp>
0022
0023 #ifdef BOOST_MSVC
0024 # pragma warning(push)
0025 # pragma warning(disable : 4511 4512)
0026 #endif
0027
0028 namespace boost {
0029 namespace archive {
0030
0031
0032
0033
0034 class BOOST_SYMBOL_VISIBLE binary_iarchive :
0035 public binary_iarchive_impl<
0036 boost::archive::binary_iarchive,
0037 std::istream::char_type,
0038 std::istream::traits_type
0039 >{
0040 public:
0041 binary_iarchive(std::istream & is, unsigned int flags = 0) :
0042 binary_iarchive_impl<
0043 binary_iarchive, std::istream::char_type, std::istream::traits_type
0044 >(is, flags)
0045 {
0046 init(flags);
0047 }
0048 binary_iarchive(std::streambuf & bsb, unsigned int flags = 0) :
0049 binary_iarchive_impl<
0050 binary_iarchive, std::istream::char_type, std::istream::traits_type
0051 >(bsb, flags)
0052 {
0053 init(flags);
0054 }
0055 };
0056
0057 }
0058 }
0059
0060
0061 BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::archive::binary_iarchive)
0062 BOOST_SERIALIZATION_USE_ARRAY_OPTIMIZATION(boost::archive::binary_iarchive)
0063
0064 #ifdef BOOST_MSVC
0065 #pragma warning(pop)
0066 #endif
0067
0068 #endif