os/ossrv/ossrv_pub/boost_apis/boost/archive/binary_iarchive.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_ARCHIVE_BINARY_IARCHIVE_HPP
sl@0
     2
#define BOOST_ARCHIVE_BINARY_IARCHIVE_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
// binary_iarchive.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
#include <istream>
sl@0
    20
#include <boost/archive/binary_iarchive_impl.hpp>
sl@0
    21
sl@0
    22
namespace boost { 
sl@0
    23
namespace archive {
sl@0
    24
sl@0
    25
// do not derive from this class.  If you want to extend this functionality
sl@0
    26
// via inhertance, derived from binary_iarchive_impl instead.  This will
sl@0
    27
// preserve correct static polymorphism.
sl@0
    28
class binary_iarchive : 
sl@0
    29
    public binary_iarchive_impl<
sl@0
    30
        boost::archive::binary_iarchive, 
sl@0
    31
        std::istream::char_type, 
sl@0
    32
        std::istream::traits_type
sl@0
    33
    >
sl@0
    34
{
sl@0
    35
public:
sl@0
    36
    binary_iarchive(std::istream & is, unsigned int flags = 0) :
sl@0
    37
        binary_iarchive_impl<
sl@0
    38
            binary_iarchive, std::istream::char_type, std::istream::traits_type
sl@0
    39
        >(is, flags)
sl@0
    40
    {}
sl@0
    41
    binary_iarchive(std::streambuf & bsb, unsigned int flags = 0) :
sl@0
    42
        binary_iarchive_impl<
sl@0
    43
            binary_iarchive, std::istream::char_type, std::istream::traits_type
sl@0
    44
        >(bsb, flags)
sl@0
    45
    {}
sl@0
    46
};
sl@0
    47
sl@0
    48
} // namespace archive
sl@0
    49
} // namespace boost
sl@0
    50
sl@0
    51
// required by smart_cast for compilers not implementing 
sl@0
    52
// partial template specialization
sl@0
    53
BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION(boost::archive::binary_iarchive)
sl@0
    54
sl@0
    55
#endif // BOOST_ARCHIVE_BINARY_IARCHIVE_HPP