base.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef BOOST_SERIALIZATION_TEST_BASE_HPP
  2. #define BOOST_SERIALIZATION_TEST_BASE_HPP
  3. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER)
  5. # pragma once
  6. #endif
  7. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  8. // base.hpp simple class test
  9. // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
  10. // Use, modification and distribution is subject to the Boost Software
  11. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. // See http://www.boost.org for updates, documentation, and revision history.
  14. #include <boost/config.hpp>
  15. #include <boost/serialization/access.hpp>
  16. #include <boost/serialization/assume_abstract.hpp>
  17. #include <boost/preprocessor/facilities/empty.hpp>
  18. #if defined(BASE_IMPORT)
  19. #define DLL_DECL BOOST_SYMBOL_IMPORT
  20. #elif defined(BASE_EXPORT)
  21. #define DLL_DECL BOOST_SYMBOL_EXPORT
  22. #else
  23. #define DLL_DECL
  24. #endif
  25. class DLL_DECL base
  26. {
  27. friend class boost::serialization::access;
  28. template<class Archive>
  29. void serialize(Archive & /* ar */, const unsigned int /* file_version */);
  30. public:
  31. virtual ~base(){};
  32. };
  33. BOOST_SERIALIZATION_ASSUME_ABSTRACT(base)
  34. #undef DLL_DECL
  35. #endif // BOOST_SERIALIZATION_TEST_BASE_HPP