archive_serializer_map.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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)
  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_SYMBOL_VISIBLE archive_serializer_map {
  29. public:
  30. static BOOST_ARCHIVE_OR_WARCHIVE_DECL bool insert(const basic_serializer * bs);
  31. static BOOST_ARCHIVE_OR_WARCHIVE_DECL void erase(const basic_serializer * bs);
  32. static BOOST_ARCHIVE_OR_WARCHIVE_DECL const basic_serializer * find(
  33. const boost::serialization::extended_type_info & type_
  34. );
  35. };
  36. } // namespace detail
  37. } // namespace archive
  38. } // namespace boost
  39. #include <boost/archive/detail/abi_suffix.hpp> // must be the last header
  40. #endif //BOOST_ARCHIVE_SERIALIZER_MAP_HPP