File indexing completed on 2025-01-18 09:28:30
0001 #ifndef BOOST_ARCHIVE_BINARY_WIARCHIVE_HPP
0002 #define BOOST_ARCHIVE_BINARY_WIARCHIVE_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 <boost/config.hpp>
0020 #ifdef BOOST_NO_STD_WSTREAMBUF
0021 #error "wide char i/o not supported on this platform"
0022 #else
0023
0024 #include <istream> // wistream
0025 #include <boost/archive/binary_iarchive_impl.hpp>
0026 #include <boost/archive/detail/register_archive.hpp>
0027
0028 namespace boost {
0029 namespace archive {
0030
0031 class binary_wiarchive :
0032 public binary_iarchive_impl<
0033 binary_wiarchive, std::wistream::char_type, std::wistream::traits_type
0034 >
0035 {
0036 public:
0037 binary_wiarchive(std::wistream & is, unsigned int flags = 0) :
0038 binary_iarchive_impl<
0039 binary_wiarchive, std::wistream::char_type, std::wistream::traits_type
0040 >(is, flags)
0041 {}
0042 binary_wiarchive(std::wstreambuf & bsb, unsigned int flags = 0) :
0043 binary_iarchive_impl<
0044 binary_wiarchive, std::wistream::char_type, std::wistream::traits_type
0045 >(bsb, flags)
0046 {}
0047 };
0048
0049 }
0050 }
0051
0052
0053 BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::archive::binary_wiarchive)
0054
0055 #endif
0056 #endif