Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 #ifndef BOOST_ARCHIVE_DETAIL_COMMON_IARCHIVE_HPP
2 #define BOOST_ARCHIVE_DETAIL_COMMON_IARCHIVE_HPP
4 // MS compatible compilers support #pragma once
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // common_iarchive.hpp
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.
19 #include <boost/archive/detail/basic_iarchive.hpp>
20 #include <boost/archive/detail/interface_iarchive.hpp>
21 #include <boost/archive/detail/iserializer.hpp>
22 #include <boost/pfto.hpp>
28 // note: referred to as Curiously Recurring Template Patter (CRTP)
29 template<class Archive>
30 class common_iarchive :
31 public basic_iarchive,
32 public interface_iarchive<Archive>
35 virtual void vload(version_type & t){
38 virtual void vload(object_id_type & t){
41 virtual void vload(class_id_type & t){
44 virtual void vload(class_id_optional_type & t){
47 virtual void vload(tracking_type & t){
50 virtual void vload(class_name_type &s){
54 // default processing - invoke serialization library
56 void load_override(T & t, BOOST_PFTO int){
57 archive::load(* this->This(), t);
59 // default implementations of functions which emit start/end tags for
60 // archive types that require them.
61 void load_start(const char *name){}
62 void load_end(const char *name){}
63 // default archive initialization
64 common_iarchive(unsigned int flags) :
65 basic_iarchive(flags),
66 interface_iarchive<Archive>()
71 } // namespace archive
74 #endif // BOOST_ARCHIVE_DETAIL_COMMON_IARCHIVE_HPP