archive_serializer_map.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef BOOST_ARCHIVE_SERIALIZER_MAP_HPP
  2. #define BOOST_ARCHIVE_SERIALIZER_MAP_HPP
  3. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  5. # pragma once
  6. #endif
  7. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  8. // archive_serializer_map.hpp: extenstion of type_info required for
  9. // serialization.
  10. // (C) Copyright 2009 Robert Ramey - http://www.rrsd.com .
  11. // Use, modification and distribution is subject to the Boost Software
  12. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  13. // http://www.boost.org/LICENSE_1_0.txt)
  14. // See http://www.boost.org for updates, documentation, and revision history.
  15. // note: this is nothing more than the thinest of wrappers around
  16. // basic_serializer_map so we can have a one map / archive type.
  17. #include <boost/config.hpp>
  18. #include <boost/archive/detail/auto_link_archive.hpp>
  19. #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
  20. namespace boost {
  21. namespace serialization {
  22. class extended_type_info;
  23. } // namespace serialization
  24. namespace archive {
  25. namespace detail {
  26. class basic_serializer;
  27. template<class Archive>
  28. class BOOST_ARCHIVE_OR_WARCHIVE_DECL(BOOST_PP_EMPTY())
  29. archive_serializer_map {
  30. public:
  31. static bool insert(const basic_serializer * bs);
  32. static void erase(const basic_serializer * bs);
  33. static const basic_serializer * find(
  34. const boost::serialization::extended_type_info & type_
  35. );
  36. };
  37. } // namespace detail
  38. } // namespace archive
  39. } // namespace boost
  40. #include <boost/archive/detail/abi_suffix.hpp> // must be the last header
  41. #endif //BOOST_ARCHIVE_SERIALIZER_MAP_HPP