Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / library / BH / include / boost / archive / impl / basic_binary_oarchive.ipp @ 2486

History | View | Annotate | Download (1.3 kB)

1 2486 sjacqu01
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
2 2486 sjacqu01
// basic_binary_oarchive.ipp:
3 2486 sjacqu01
4 2486 sjacqu01
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
5 2486 sjacqu01
// Use, modification and distribution is subject to the Boost Software
6 2486 sjacqu01
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 2486 sjacqu01
// http://www.boost.org/LICENSE_1_0.txt)
8 2486 sjacqu01
9 2486 sjacqu01
//  See http://www.boost.org for updates, documentation, and revision history.
10 2486 sjacqu01
#include <string>
11 2486 sjacqu01
#include <boost/assert.hpp>
12 2486 sjacqu01
#include <algorithm>
13 2486 sjacqu01
#include <cstring>
14 2486 sjacqu01
15 2486 sjacqu01
#include <boost/config.hpp>
16 2486 sjacqu01
#if defined(BOOST_NO_STDC_NAMESPACE)
17 2486 sjacqu01
namespace std{
18 2486 sjacqu01
    using ::memcpy;
19 2486 sjacqu01
}
20 2486 sjacqu01
#endif
21 2486 sjacqu01
22 2486 sjacqu01
#include <boost/archive/basic_binary_oarchive.hpp>
23 2486 sjacqu01
24 2486 sjacqu01
namespace boost {
25 2486 sjacqu01
namespace archive {
26 2486 sjacqu01
27 2486 sjacqu01
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
28 2486 sjacqu01
// implementation of binary_binary_oarchive
29 2486 sjacqu01
30 2486 sjacqu01
template<class Archive>
31 2486 sjacqu01
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
32 2486 sjacqu01
basic_binary_oarchive<Archive>::init(){
33 2486 sjacqu01
    // write signature in an archive version independent manner
34 2486 sjacqu01
    const std::string file_signature(BOOST_ARCHIVE_SIGNATURE());
35 2486 sjacqu01
    * this->This() << file_signature;
36 2486 sjacqu01
    // write library version
37 2486 sjacqu01
    const library_version_type v(BOOST_ARCHIVE_VERSION());
38 2486 sjacqu01
    * this->This() << v;
39 2486 sjacqu01
}
40 2486 sjacqu01
41 2486 sjacqu01
} // namespace archive
42 2486 sjacqu01
} // namespace boost