1 #ifndef BOOST_ARCHIVE_TEXT_IARCHIVE_HPP
2 #define BOOST_ARCHIVE_TEXT_IARCHIVE_HPP
4 // MS compatible compilers support #pragma once
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
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)
17 // See http://www.boost.org for updates, documentation, and revision history.
21 #include <boost/config.hpp>
22 #include <boost/archive/detail/auto_link_archive.hpp>
23 #include <boost/archive/basic_text_iprimitive.hpp>
24 #include <boost/archive/basic_text_iarchive.hpp>
25 #include <boost/archive/detail/register_archive.hpp>
26 #include <boost/serialization/item_version_type.hpp>
28 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
31 # pragma warning(push)
32 # pragma warning(disable : 4511 4512)
39 template<class Archive> class interface_iarchive;
42 template<class Archive>
43 class BOOST_SYMBOL_VISIBLE text_iarchive_impl :
44 public basic_text_iprimitive<std::istream>,
45 public basic_text_iarchive<Archive>
47 #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
51 friend class detail::interface_iarchive<Archive>;
52 friend class load_access;
56 basic_text_iprimitive<std::istream>::load(t);
58 void load(version_type & t){
63 void load(boost::serialization::item_version_type & t){
66 t = boost::serialization::item_version_type(v);
68 BOOST_ARCHIVE_DECL void
70 #ifndef BOOST_NO_INTRINSIC_WCHAR_T
71 BOOST_ARCHIVE_DECL void
74 BOOST_ARCHIVE_DECL void
76 #ifndef BOOST_NO_STD_WSTRING
77 BOOST_ARCHIVE_DECL void
78 load(std::wstring &ws);
81 void load_override(T & t){
82 basic_text_iarchive<Archive>::load_override(t);
84 BOOST_ARCHIVE_DECL void
85 load_override(class_name_type & t);
86 BOOST_ARCHIVE_DECL void
89 text_iarchive_impl(std::istream & is, unsigned int flags);
90 // don't import inline definitions! leave this as a reminder.
92 ~text_iarchive_impl(){};
95 } // namespace archive
102 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
105 # pragma warning(push)
106 # pragma warning(disable : 4511 4512)
112 class BOOST_SYMBOL_VISIBLE text_iarchive :
113 public text_iarchive_impl<text_iarchive>{
115 text_iarchive(std::istream & is_, unsigned int flags = 0) :
116 // note: added _ to suppress useless gcc warning
117 text_iarchive_impl<text_iarchive>(is_, flags)
122 } // namespace archive
125 // required by export
126 BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::archive::text_iarchive)
132 #endif // BOOST_ARCHIVE_TEXT_IARCHIVE_HPP