epoc32/include/stdapis/boost/serialization/level_enum.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/serialization/level_enum.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,55 @@
     1.4 +#ifndef BOOST_SERIALIZATION_LEVEL_ENUM_HPP
     1.5 +#define BOOST_SERIALIZATION_LEVEL_ENUM_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 +// level_enum.hpp:
    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 +namespace boost {
    1.23 +namespace serialization {
    1.24 +
    1.25 +// for each class used in the program, specify which level
    1.26 +// of serialization should be implemented
    1.27 +
    1.28 +// names for each level
    1.29 +enum level_type
    1.30 +{
    1.31 +    // Don't serialize this type. An attempt to do so should
    1.32 +    // invoke a compile time assertion.
    1.33 +    not_serializable = 0,
    1.34 +    // write/read this type directly to the archive. In this case
    1.35 +    // serialization code won't be called.  This is the default
    1.36 +    // case for fundamental types.  It presumes a member function or
    1.37 +    // template in the archive class that can handle this type.
    1.38 +    // there is no runtime overhead associated reading/writing
    1.39 +    // instances of this level
    1.40 +    primitive_type = 1,
    1.41 +    // Serialize the objects of this type using the objects "serialize"
    1.42 +    // function or template. This permits values to be written/read
    1.43 +    // to/from archives but includes no class or version information. 
    1.44 +    object_serializable = 2,
    1.45 +    ///////////////////////////////////////////////////////////////////
    1.46 +    // once an object is serialized at one of the above levels, the
    1.47 +    // corresponding archives cannot be read if the implementation level
    1.48 +    // for the archive object is changed.  
    1.49 +    ///////////////////////////////////////////////////////////////////
    1.50 +    // Add class information to the archive.  Class information includes
    1.51 +    // implementation level, class version and class name if available
    1.52 +    object_class_info = 3
    1.53 +};
    1.54 +
    1.55 +} // namespace serialization
    1.56 +} // namespace boost
    1.57 +
    1.58 +#endif // BOOST_SERIALIZATION_LEVEL_ENUM_HPP