1 | #ifndef BOOST_SERIALIZATION_TEST_DERIVED2_HPP |
2 | #define BOOST_SERIALIZATION_TEST_DERIVED2_HPP |
3 | |
4 | // MS compatible compilers support #pragma once |
5 | #if defined(_MSC_VER) |
6 | # pragma once |
7 | #endif |
8 | |
9 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
10 | // derived2.hpp simple class test |
11 | |
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) |
16 | |
17 | // See http://www.boost.org for updates, documentation, and revision history. |
18 | |
19 | #include <boost/config.hpp> |
20 | |
21 | #include <boost/serialization/export.hpp> |
22 | #include <boost/serialization/access.hpp> |
23 | |
24 | #define BASE_IMPORT |
25 | #include "base.hpp" |
26 | |
27 | #if defined(DERIVED2_IMPORT) |
28 | #define DLL_DECL BOOST_SYMBOL_IMPORT |
29 | #elif defined(DERIVED2_EXPORT) |
30 | #define DLL_DECL BOOST_SYMBOL_EXPORT |
31 | #else |
32 | #define DLL_DECL |
33 | #endif |
34 | |
35 | class DLL_DECL derived2 : |
36 | public base |
37 | { |
38 | friend class boost::serialization::access; |
39 | template<class Archive> |
40 | void serialize(Archive &ar, const unsigned int /* file_version */); |
41 | public: |
42 | ~derived2(){} |
43 | }; |
44 | |
45 | #undef DLL_DECL |
46 | |
47 | // MWerks users can do this to make their code work |
48 | BOOST_SERIALIZATION_MWERKS_BASE_AND_DERIVED(base, derived2) |
49 | |
50 | #endif // BOOST_SERIALIZATION_TEST_DERIVED2_HPP |
51 | |