epoc32/include/stdapis/boost/pending/property_serialize.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/pending/property_serialize.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,28 @@
     1.4 +//  (C) Copyright Jeremy Siek 2006
     1.5 +//  Distributed under the Boost Software License, Version 1.0. (See
     1.6 +//  accompanying file LICENSE_1_0.txt or copy at
     1.7 +//  http://www.boost.org/LICENSE_1_0.txt)
     1.8 +
     1.9 +#ifndef BOOST_PROPERTY_SERIALIZE_HPP
    1.10 +#define BOOST_PROPERTY_SERIALIZE_HPP
    1.11 +
    1.12 +#include <boost/pending/property.hpp>
    1.13 +
    1.14 +#include <boost/serialization/base_object.hpp>
    1.15 +#include <boost/serialization/nvp.hpp>
    1.16 +
    1.17 +namespace boost {
    1.18 +  template<class Archive>
    1.19 +  inline void serialize(Archive&, no_property&, const unsigned int) { }
    1.20 +
    1.21 +  template<class Archive, class Tag, class T, class Base>
    1.22 +  void 
    1.23 +  serialize(Archive& ar, property<Tag, T, Base>& prop, 
    1.24 +            const unsigned int version) 
    1.25 +  {
    1.26 +    ar & serialization::make_nvp( "property_base" , boost::serialization::base_object<Base>(prop) );
    1.27 +    ar & serialization::make_nvp( "property_value" , prop.m_value );
    1.28 +  }
    1.29 +} // end namespace boost
    1.30 +
    1.31 +#endif // BOOST_PROPERTY_SERIALIZE_HPP