Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:30

0001 #ifndef BOOST_ARCHIVE_BINARY_WOARCHIVE_HPP
0002 #define BOOST_ARCHIVE_BINARY_WOARCHIVE_HPP
0003 
0004 // MS compatible compilers support #pragma once
0005 #if defined(_MSC_VER)
0006 # pragma once
0007 #endif
0008 
0009 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
0010 // binary_woarchive.hpp
0011 
0012 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
0013 // Use, modification and distribution is subject to the Boost Software
0014 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0015 // http://www.boost.org/LICENSE_1_0.txt)
0016 
0017 //  See http://www.boost.org for updates, documentation, and revision history.
0018 
0019 #include <boost/config.hpp>
0020 #ifdef BOOST_NO_STD_WSTREAMBUF
0021 #error "wide char i/o not supported on this platform"
0022 #else
0023 
0024 #include <ostream>
0025 #include <boost/archive/binary_oarchive_impl.hpp>
0026 #include <boost/archive/detail/register_archive.hpp>
0027 
0028 namespace boost {
0029 namespace archive {
0030 
0031 // do not derive from this class.  If you want to extend this functionality
0032 // via inheritance, derived from binary_oarchive_impl instead.  This will
0033 // preserve correct static polymorphism.
0034 class binary_woarchive :
0035     public binary_oarchive_impl<
0036             binary_woarchive, std::wostream::char_type, std::wostream::traits_type
0037         >
0038 {
0039 public:
0040     binary_woarchive(std::wostream & os, unsigned int flags = 0) :
0041         binary_oarchive_impl<
0042             binary_woarchive, std::wostream::char_type, std::wostream::traits_type
0043         >(os, flags)
0044     {}
0045     binary_woarchive(std::wstreambuf & bsb, unsigned int flags = 0) :
0046         binary_oarchive_impl<
0047             binary_woarchive, std::wostream::char_type, std::wostream::traits_type
0048         >(bsb, flags)
0049     {}
0050 };
0051 
0052 } // namespace archive
0053 } // namespace boost
0054 
0055 // required by export
0056 BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::archive::binary_woarchive)
0057 
0058 #endif // BOOST_NO_STD_WSTREAMBUF
0059 #endif // BOOST_ARCHIVE_BINARY_WOARCHIVE_HPP