File indexing completed on 2025-01-18 09:28:27
0001 #ifndef BOOST_ARCHIVE_BASIC_POINTER_OSERIALIZER_HPP
0002 #define BOOST_ARCHIVE_BASIC_POINTER_OSERIALIZER_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 #include <boost/noncopyable.hpp>
0021 #include <boost/archive/detail/auto_link_archive.hpp>
0022 #include <boost/archive/detail/basic_serializer.hpp>
0023
0024 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
0025
0026 #ifdef BOOST_MSVC
0027 # pragma warning(push)
0028 # pragma warning(disable : 4511 4512)
0029 #endif
0030
0031 namespace boost {
0032 namespace serialization {
0033 class extended_type_info;
0034 }
0035
0036 namespace archive {
0037 namespace detail {
0038
0039 class basic_oarchive;
0040 class basic_oserializer;
0041
0042 class BOOST_SYMBOL_VISIBLE basic_pointer_oserializer :
0043 public basic_serializer
0044 {
0045 protected:
0046 explicit BOOST_ARCHIVE_DECL basic_pointer_oserializer(
0047 const boost::serialization::extended_type_info & type_
0048 );
0049 public:
0050 virtual BOOST_ARCHIVE_DECL ~basic_pointer_oserializer();
0051 virtual const basic_oserializer & get_basic_serializer() const = 0;
0052 virtual void save_object_ptr(
0053 basic_oarchive & ar,
0054 const void * x
0055 ) const = 0;
0056 };
0057
0058 }
0059 }
0060 }
0061
0062 #ifdef BOOST_MSVC
0063 #pragma warning(pop)
0064 #endif
0065
0066 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
0067
0068 #endif