polymorphic_xml_woarchive.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef BOOST_ARCHIVE_POLYMORPHIC_XML_WOARCHIVE_HPP
  2. #define BOOST_ARCHIVE_POLYMORPHIC_XML_WOARCHIVE_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_xml_woarchive.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. #ifdef BOOST_NO_STD_WSTREAMBUF
  16. #error "wide char i/o not supported on this platform"
  17. #else
  18. #include <boost/archive/xml_woarchive.hpp>
  19. #include <boost/archive/detail/polymorphic_oarchive_route.hpp>
  20. namespace boost {
  21. namespace archive {
  22. class BOOST_SYMBOL_VISIBLE polymorphic_xml_woarchive :
  23. public detail::polymorphic_oarchive_route<xml_woarchive>
  24. {
  25. public:
  26. polymorphic_xml_woarchive(std::wostream & os, unsigned int flags = 0) :
  27. detail::polymorphic_oarchive_route<xml_woarchive>(os, flags)
  28. {}
  29. ~polymorphic_xml_woarchive() BOOST_OVERRIDE {}
  30. };
  31. } // namespace archive
  32. } // namespace boost
  33. // required by export
  34. BOOST_SERIALIZATION_REGISTER_ARCHIVE(
  35. boost::archive::polymorphic_xml_woarchive
  36. )
  37. #endif // BOOST_NO_STD_WSTREAMBUF
  38. #endif // BOOST_ARCHIVE_POLYMORPHIC_XML_WOARCHIVE_HPP