source: NonGTP/Boost/boost/archive/detail/basic_pointer_oserializer.hpp @ 857

Revision 857, 2.0 KB checked in by igarcia, 18 years ago (diff)
Line 
1#ifndef BOOST_ARCHIVE_BASIC_ARCHIVE_POINTER_OSERIALIZER_HPP
2#define BOOST_ARCHIVE_BASIC_ARCHIVE_POINTER_OSERIALIZER_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
25namespace boost {
26
27namespace serialization {
28    class extended_type_info;
29} // namespace serialization
30
31namespace archive {
32namespace detail {
33
34class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_oarchive;
35class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_oserializer;
36
37class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_oserializer :
38    public basic_serializer {
39protected:
40    explicit basic_pointer_oserializer(
41        const boost::serialization::extended_type_info & type_
42    );
43    // account for bogus gcc warning
44    #if defined(__GNUC__)
45    virtual
46    #endif
47    ~basic_pointer_oserializer();
48public:
49    virtual const basic_oserializer & get_basic_serializer() const = 0;
50    virtual void save_object_ptr(
51        basic_oarchive & ar,
52        const void * x
53    ) const = 0;
54};
55
56} // namespace detail
57} // namespace archive
58} // namespace boost
59
60#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
61
62#endif // BOOST_ARCHIVE_BASIC_ARCHIVE_POINTER_OSERIALIZER_HPP
Note: See TracBrowser for help on using the repository browser.