• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef BOOST_ARCHIVE_POLYMORPHIC_TEXT_IARCHIVE_HPP
2 #define BOOST_ARCHIVE_POLYMORPHIC_TEXT_IARCHIVE_HPP
3 
4 // MS compatible compilers support #pragma once
5 #if defined(_MSC_VER)
6 # pragma once
7 #endif
8 
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // polymorphic_text_iarchive.hpp
11 
12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
13 // Use, modification and distribution is subject to the Boost Software
14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15 // http://www.boost.org/LICENSE_1_0.txt)
16 
17 //  See http://www.boost.org for updates, documentation, and revision history.
18 
19 #include <boost/config.hpp>
20 #include <boost/archive/text_iarchive.hpp>
21 #include <boost/archive/detail/polymorphic_iarchive_route.hpp>
22 
23 #ifdef BOOST_MSVC
24 #  pragma warning(push)
25 #  pragma warning(disable : 4511 4512)
26 #endif
27 
28 namespace boost {
29 namespace archive {
30 
31 class BOOST_SYMBOL_VISIBLE polymorphic_text_iarchive :
32     public detail::polymorphic_iarchive_route<text_iarchive>
33 {
34 public:
polymorphic_text_iarchive(std::istream & is,unsigned int flags=0)35     polymorphic_text_iarchive(std::istream & is, unsigned int flags = 0) :
36         detail::polymorphic_iarchive_route<text_iarchive>(is, flags)
37     {}
~polymorphic_text_iarchive()38     ~polymorphic_text_iarchive() BOOST_OVERRIDE {}
39 };
40 
41 } // namespace archive
42 } // namespace boost
43 
44 #ifdef BOOST_MSVC
45 #pragma warning(pop)
46 #endif
47 
48 // required by export
49 BOOST_SERIALIZATION_REGISTER_ARCHIVE(
50     boost::archive::polymorphic_text_iarchive
51 )
52 
53 #endif // BOOST_ARCHIVE_POLYMORPHIC_TEXT_IARCHIVE_HPP
54