Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:33:01

0001 #ifndef BOOST_ARCHIVE_BINARY_OARCHIVE_HPP
0002 #define BOOST_ARCHIVE_BINARY_OARCHIVE_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_oarchive.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 <ostream>
0020 #include <boost/config.hpp>
0021 #include <boost/archive/binary_oarchive_impl.hpp>
0022 #include <boost/archive/detail/register_archive.hpp>
0023 
0024 #ifdef BOOST_MSVC
0025 #  pragma warning(push)
0026 #  pragma warning(disable : 4511 4512)
0027 #endif
0028 
0029 namespace boost {
0030 namespace archive {
0031 
0032 // do not derive from this class.  If you want to extend this functionality
0033 // via inheritance, derived from binary_oarchive_impl instead.  This will
0034 // preserve correct static polymorphism.
0035 class BOOST_SYMBOL_VISIBLE binary_oarchive :
0036     public binary_oarchive_impl<
0037         binary_oarchive, std::ostream::char_type, std::ostream::traits_type
0038     >
0039 {
0040 public:
0041     binary_oarchive(std::ostream & os, unsigned int flags = 0) :
0042         binary_oarchive_impl<
0043             binary_oarchive, std::ostream::char_type, std::ostream::traits_type
0044         >(os, flags)
0045     {
0046         init(flags);
0047     }
0048     binary_oarchive(std::streambuf & bsb, unsigned int flags = 0) :
0049         binary_oarchive_impl<
0050             binary_oarchive, std::ostream::char_type, std::ostream::traits_type
0051         >(bsb, flags)
0052     {
0053         init(flags);
0054     }
0055 };
0056 
0057 } // namespace archive
0058 } // namespace boost
0059 
0060 // required by export
0061 BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::archive::binary_oarchive)
0062 BOOST_SERIALIZATION_USE_ARRAY_OPTIMIZATION(boost::archive::binary_oarchive)
0063 
0064 #ifdef BOOST_MSVC
0065 #pragma warning(pop)
0066 #endif
0067 
0068 #endif // BOOST_ARCHIVE_BINARY_OARCHIVE_HPP