epoc32/include/stdapis/boost/archive/detail/basic_iserializer.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/archive/detail/basic_iserializer.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,87 @@
     1.4 +#ifndef BOOST_ARCHIVE_DETAIL_BASIC_ISERIALIZER_HPP
     1.5 +#define BOOST_ARCHIVE_DETAIL_BASIC_ISERIALIZER_HPP
     1.6 +
     1.7 +// MS compatible compilers support #pragma once
     1.8 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
     1.9 +# pragma once
    1.10 +#endif
    1.11 +
    1.12 +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
    1.13 +// basic_iserializer.hpp: extenstion of type_info required for serialization.
    1.14 +
    1.15 +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . 
    1.16 +// Use, modification and distribution is subject to the Boost Software
    1.17 +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
    1.18 +// http://www.boost.org/LICENSE_1_0.txt)
    1.19 +
    1.20 +//  See http://www.boost.org for updates, documentation, and revision history.
    1.21 +
    1.22 +#include <cassert>
    1.23 +#include <cstdlib> // NULL
    1.24 +#include <boost/config.hpp>
    1.25 +
    1.26 +#include <boost/archive/detail/auto_link_archive.hpp>
    1.27 +#include <boost/archive/detail/basic_serializer.hpp>
    1.28 +
    1.29 +#include <boost/archive/detail/abi_prefix.hpp> // must be the last header
    1.30 +
    1.31 +namespace boost {
    1.32 +
    1.33 +namespace serialization {
    1.34 +    class extended_type_info;
    1.35 +} // namespace serialization
    1.36 +
    1.37 +// forward declarations
    1.38 +namespace archive {
    1.39 +namespace detail {
    1.40 +
    1.41 +class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iarchive;
    1.42 +class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer;
    1.43 +
    1.44 +class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iserializer : 
    1.45 +    public basic_serializer
    1.46 +{
    1.47 +private:
    1.48 +    basic_pointer_iserializer *bpis;
    1.49 +protected:
    1.50 +    explicit basic_iserializer(
    1.51 +        const boost::serialization::extended_type_info & type_
    1.52 +    );
    1.53 +    // account for bogus gcc warning
    1.54 +    #if defined(__GNUC__)
    1.55 +    virtual
    1.56 +    #endif
    1.57 +    ~basic_iserializer();
    1.58 +public:
    1.59 +    bool serialized_as_pointer() const {
    1.60 +        return bpis != NULL;
    1.61 +    }
    1.62 +    void set_bpis(basic_pointer_iserializer *bpis_){
    1.63 +        bpis = bpis_;
    1.64 +    }
    1.65 +    const basic_pointer_iserializer * get_bpis_ptr() const {
    1.66 +        return bpis;
    1.67 +    }
    1.68 +    virtual void load_object_data(
    1.69 +        basic_iarchive & ar, 
    1.70 +        void *x,
    1.71 +        const unsigned int file_version
    1.72 +    ) const = 0;
    1.73 +    // returns true if class_info should be saved
    1.74 +    virtual bool class_info() const = 0 ;
    1.75 +    // returns true if objects should be tracked
    1.76 +    virtual bool tracking(const unsigned int) const = 0 ;
    1.77 +    // returns class version
    1.78 +    virtual unsigned int version() const = 0 ;
    1.79 +    // returns true if this class is polymorphic
    1.80 +    virtual bool is_polymorphic() const = 0;
    1.81 +    virtual void destroy(/*const*/ void *address) const = 0 ;
    1.82 +};
    1.83 +
    1.84 +} // namespae detail
    1.85 +} // namespace archive
    1.86 +} // namespace boost
    1.87 +
    1.88 +#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
    1.89 +
    1.90 +#endif // BOOST_ARCHIVE_DETAIL_BASIC_ISERIALIZER_HPP