Chris@16: #ifndef BOOST_SERIALIZATION_LEVEL_ENUM_HPP Chris@16: #define BOOST_SERIALIZATION_LEVEL_ENUM_HPP Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 Chris@16: // level_enum.hpp: Chris@16: Chris@16: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . Chris@16: // Use, modification and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for updates, documentation, and revision history. Chris@16: Chris@16: namespace boost { Chris@16: namespace serialization { Chris@16: Chris@16: // for each class used in the program, specify which level Chris@16: // of serialization should be implemented Chris@16: Chris@16: // names for each level Chris@16: enum level_type Chris@16: { Chris@16: // Don't serialize this type. An attempt to do so should Chris@16: // invoke a compile time assertion. Chris@16: not_serializable = 0, Chris@16: // write/read this type directly to the archive. In this case Chris@16: // serialization code won't be called. This is the default Chris@16: // case for fundamental types. It presumes a member function or Chris@16: // template in the archive class that can handle this type. Chris@16: // there is no runtime overhead associated reading/writing Chris@16: // instances of this level Chris@16: primitive_type = 1, Chris@16: // Serialize the objects of this type using the objects "serialize" Chris@16: // function or template. This permits values to be written/read Chris@16: // to/from archives but includes no class or version information. Chris@16: object_serializable = 2, Chris@16: /////////////////////////////////////////////////////////////////// Chris@16: // once an object is serialized at one of the above levels, the Chris@16: // corresponding archives cannot be read if the implementation level Chris@16: // for the archive object is changed. Chris@16: /////////////////////////////////////////////////////////////////// Chris@16: // Add class information to the archive. Class information includes Chris@16: // implementation level, class version and class name if available Chris@16: object_class_info = 3 Chris@16: }; Chris@16: Chris@16: } // namespace serialization Chris@16: } // namespace boost Chris@16: Chris@16: #endif // BOOST_SERIALIZATION_LEVEL_ENUM_HPP