1 // (C) Copyright 2005 Matthias Troyer
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // Authors: Matthias Troyer
9 #ifndef BOOST_MPI_TEXT_SKELETON_OARCHIVE_HPP
10 #define BOOST_MPI_TEXT_SKELETON_OARCHIVE_HPP
12 #include <boost/archive/detail/auto_link_archive.hpp>
13 #include <boost/archive/text_oarchive.hpp>
14 #include <boost/mpi/detail/forward_skeleton_oarchive.hpp>
15 #include <boost/mpi/detail/ignore_oprimitive.hpp>
16 #include <boost/archive/detail/register_archive.hpp>
18 namespace boost { namespace mpi {
20 // an archive that writes a text skeleton into a stream
22 class text_skeleton_oarchive
23 : public detail::ignore_oprimitive,
24 public detail::forward_skeleton_oarchive<text_skeleton_oarchive,boost::archive::text_oarchive>
27 text_skeleton_oarchive(std::ostream & s, unsigned int flags = 0)
28 : detail::forward_skeleton_oarchive<text_skeleton_oarchive,boost::archive::text_oarchive>(skeleton_archive_)
29 , skeleton_archive_(s,flags)
33 boost::archive::text_oarchive skeleton_archive_;
38 typedef boost::mpi::detail::forward_skeleton_oarchive<boost::mpi::text_skeleton_oarchive,boost::archive::text_oarchive> type3;
43 } } // end namespace boost::mpi
46 BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::mpi::text_skeleton_oarchive)
47 BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::mpi::detail::type3)
50 #endif // BOOST_MPI_TEXT_SKELETON_OARCHIVE_HPP