1 #ifndef BOOST_ARCHIVE_BINARY_IARCHIVE_IMPL_HPP
2 #define BOOST_ARCHIVE_BINARY_IARCHIVE_IMPL_HPP
4 // MS compatible compilers support #pragma once
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // binary_iarchive_impl.hpp
12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
13 // Use, modification and distribution is subject to the Boost Software
14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15 // http://www.boost.org/LICENSE_1_0.txt)
17 // See http://www.boost.org for updates, documentation, and revision history.
20 #include <boost/archive/basic_binary_iprimitive.hpp>
21 #include <boost/archive/basic_binary_iarchive.hpp>
24 # pragma warning(push)
25 # pragma warning(disable : 4511 4512)
32 template<class Archive> class interface_iarchive;
35 template<class Archive, class Elem, class Tr>
36 class BOOST_SYMBOL_VISIBLE binary_iarchive_impl :
37 public basic_binary_iprimitive<Archive, Elem, Tr>,
38 public basic_binary_iarchive<Archive>
40 #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
44 #if BOOST_WORKAROUND(BOOST_MSVC, < 1500)
45 // for some inexplicable reason insertion of "class" generates compile erro
47 friend detail::interface_iarchive<Archive>;
48 friend basic_binary_iarchive<Archive>;
51 friend class detail::interface_iarchive<Archive>;
52 friend class basic_binary_iarchive<Archive>;
53 friend class load_access;
57 void load_override(T & t){
58 this->basic_binary_iarchive<Archive>::load_override(t);
60 void init(unsigned int flags){
61 if(0 != (flags & no_header)){
64 #if ! defined(__MWERKS__)
65 this->basic_binary_iarchive<Archive>::init();
66 this->basic_binary_iprimitive<Archive, Elem, Tr>::init();
68 basic_binary_iarchive<Archive>::init();
69 basic_binary_iprimitive<Archive, Elem, Tr>::init();
73 std::basic_streambuf<Elem, Tr> & bsb,
76 basic_binary_iprimitive<Archive, Elem, Tr>(
78 0 != (flags & no_codecvt)
80 basic_binary_iarchive<Archive>(flags)
85 std::basic_istream<Elem, Tr> & is,
88 basic_binary_iprimitive<Archive, Elem, Tr>(
90 0 != (flags & no_codecvt)
92 basic_binary_iarchive<Archive>(flags)
98 } // namespace archive
105 #endif // BOOST_ARCHIVE_BINARY_IARCHIVE_IMPL_HPP