os/ossrv/ossrv_pub/boost_apis/boost/serialization/tracking_enum.hpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
#ifndef BOOST_SERIALIZATION_TRACKING_ENUM_HPP
sl@0
     2
#define BOOST_SERIALIZATION_TRACKING_ENUM_HPP
sl@0
     3
sl@0
     4
// MS compatible compilers support #pragma once
sl@0
     5
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
sl@0
     6
# pragma once
sl@0
     7
#endif
sl@0
     8
sl@0
     9
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
sl@0
    10
// tracking_enum.hpp:
sl@0
    11
sl@0
    12
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . 
sl@0
    13
// Use, modification and distribution is subject to the Boost Software
sl@0
    14
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
sl@0
    15
// http://www.boost.org/LICENSE_1_0.txt)
sl@0
    16
sl@0
    17
//  See http://www.boost.org for updates, documentation, and revision history.
sl@0
    18
sl@0
    19
namespace boost {
sl@0
    20
namespace serialization {
sl@0
    21
sl@0
    22
// addresses of serialized objects may be tracked to avoid saving/loading
sl@0
    23
// redundant copies.  This header defines a class trait that can be used
sl@0
    24
// to specify when objects should be tracked
sl@0
    25
sl@0
    26
// names for each tracking level
sl@0
    27
enum tracking_type
sl@0
    28
{
sl@0
    29
    // never track this type
sl@0
    30
    track_never = 0,
sl@0
    31
    // track objects of this type if the object is serialized through a 
sl@0
    32
    // pointer.
sl@0
    33
    track_selectivly = 1,
sl@0
    34
    // always track this type
sl@0
    35
    track_always = 2
sl@0
    36
};
sl@0
    37
sl@0
    38
} // namespace serialization
sl@0
    39
} // namespace boost
sl@0
    40
sl@0
    41
#endif // BOOST_SERIALIZATION_TRACKING_ENUM_HPP