polymorphic_text_oarchive.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef BOOST_ARCHIVE_POLYMORPHIC_TEXT_OARCHIVE_HPP
  2. #define BOOST_ARCHIVE_POLYMORPHIC_TEXT_OARCHIVE_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. // polymorphic_text_oarchive.hpp
  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/archive/text_oarchive.hpp>
  16. #include <boost/archive/detail/polymorphic_oarchive_route.hpp>
  17. namespace boost {
  18. namespace archive {
  19. class BOOST_SYMBOL_VISIBLE polymorphic_text_oarchive :
  20. public detail::polymorphic_oarchive_route<text_oarchive>
  21. {
  22. public:
  23. polymorphic_text_oarchive(std::ostream & os, unsigned int flags = 0) :
  24. detail::polymorphic_oarchive_route<text_oarchive>(os, flags)
  25. {}
  26. ~polymorphic_text_oarchive() BOOST_OVERRIDE {}
  27. };
  28. } // namespace archive
  29. } // namespace boost
  30. // required by export
  31. BOOST_SERIALIZATION_REGISTER_ARCHIVE(
  32. boost::archive::polymorphic_text_oarchive
  33. )
  34. #endif // BOOST_ARCHIVE_POLYMORPHIC_TEXT_OARCHIVE_HPP