Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 #ifndef BOOST_ARCHIVE_ARCHIVE_POINTER_ISERIALIZER_POINTER_HPP
2 #define BOOST_ARCHIVE_ARCHIVE_POINTER_ISERIALIZER_POINTER_HPP
4 // MS compatible compilers support #pragma once
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // archive_pointer_iserializer.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/config.hpp>
21 #include <boost/detail/workaround.hpp>
23 #include <boost/archive/detail/basic_serializer.hpp>
24 #include <boost/archive/detail/basic_pointer_iserializer.hpp>
26 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
30 namespace serialization {
31 class extended_type_info;
32 } // namespace serialization
37 template<class Archive>
38 class archive_pointer_iserializer :
39 public basic_pointer_iserializer {
41 explicit BOOST_ARCHIVE_OR_WARCHIVE_DECL(BOOST_PP_EMPTY())
42 archive_pointer_iserializer(
43 const boost::serialization::extended_type_info & eti
45 BOOST_ARCHIVE_OR_WARCHIVE_DECL(BOOST_PP_EMPTY())
46 // account for bogus gcc warning
50 ~archive_pointer_iserializer();
52 virtual const basic_iserializer & get_basic_serializer() const
53 // mscvc 6.0 requires template functions to be implemented. For this
54 // reason we can't make abstract.
55 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || defined(__MWERKS__)
58 return *static_cast<const basic_iserializer *>(NULL);
63 virtual void load_object_ptr(
66 const unsigned int file_version
68 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || defined(__MWERKS__)
75 // return the type_extended load pointer corresponding to a given
76 // type_info. returns NULL if there is no such instance. This
77 // would indicate that the no object of the specified type was loaded
78 // any where in the code.
80 BOOST_ARCHIVE_OR_WARCHIVE_DECL(const basic_pointer_iserializer *)
82 const boost::serialization::extended_type_info & eti
87 } // namespace archive
90 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
92 #endif // BOOST_ARCHIVE_ARCHIVE_POINTER_ISERIALIZER_POINTER_HPP