PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/archive/impl/basic_binary_oarchive.ipp

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