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