1 | #ifndef BOOST_ARCHIVE_BASIC_ARCHIVE_POINTER_ISERIALIZER_HPP |
---|
2 | #define BOOST_ARCHIVE_BASIC_ARCHIVE_POINTER_ISERIALIZER_HPP |
---|
3 | |
---|
4 | // MS compatible compilers support #pragma once |
---|
5 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
---|
6 | # pragma once |
---|
7 | #endif |
---|
8 | |
---|
9 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
---|
10 | // basic_pointer_oserializer.hpp: extenstion of type_info required for |
---|
11 | // serialization. |
---|
12 | |
---|
13 | // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . |
---|
14 | // Use, modification and distribution is subject to the Boost Software |
---|
15 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
---|
16 | // http://www.boost.org/LICENSE_1_0.txt) |
---|
17 | |
---|
18 | // See http://www.boost.org for updates, documentation, and revision history. |
---|
19 | #include <boost/config.hpp> |
---|
20 | #include <boost/archive/detail/auto_link_archive.hpp> |
---|
21 | #include <boost/archive/detail/basic_serializer.hpp> |
---|
22 | |
---|
23 | #include <boost/archive/detail/abi_prefix.hpp> // must be the last header |
---|
24 | |
---|
25 | namespace boost { |
---|
26 | |
---|
27 | namespace serialization { |
---|
28 | class extended_type_info; |
---|
29 | } // namespace serialization |
---|
30 | |
---|
31 | // forward declarations |
---|
32 | namespace archive { |
---|
33 | namespace detail { |
---|
34 | |
---|
35 | class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iarchive; |
---|
36 | class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iserializer; |
---|
37 | |
---|
38 | class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer |
---|
39 | : public basic_serializer { |
---|
40 | protected: |
---|
41 | explicit basic_pointer_iserializer( |
---|
42 | const boost::serialization::extended_type_info & type_ |
---|
43 | ); |
---|
44 | // account for bogus gcc warning |
---|
45 | #if defined(__GNUC__) |
---|
46 | virtual |
---|
47 | #endif |
---|
48 | ~basic_pointer_iserializer(); |
---|
49 | public: |
---|
50 | virtual const basic_iserializer & get_basic_serializer() const = 0; |
---|
51 | virtual void load_object_ptr( |
---|
52 | basic_iarchive & ar, |
---|
53 | void * & x, |
---|
54 | const unsigned int file_version |
---|
55 | ) const = 0; |
---|
56 | }; |
---|
57 | |
---|
58 | } // namespace detail |
---|
59 | } // namespace archive |
---|
60 | } // namespace boost |
---|
61 | |
---|
62 | #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas |
---|
63 | |
---|
64 | #endif // BOOST_ARCHIVE_BASIC_ARCHIVE_POINTER_ISERIALIZER_HPP |
---|