Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/serialization/test/portable_binary_archive.hpp @ 33

Last change on this file since 33 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 927 bytes
Line 
1// (C) Copyright 2002-4 Robert Ramey - http://www.rrsd.com .
2// Use, modification and distribution is subject to the Boost Software
3// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4// http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org for updates, documentation, and revision history.// file includes for testing a custom archive.
7// as an example this tests the portable binary archive
8
9// #include output archive header
10#include "../example/portable_binary_oarchive.hpp"
11// define output archive class to be used
12typedef portable_binary_oarchive test_oarchive;
13// and corresponding stream
14typedef std::ofstream test_ostream;
15
16// repeat the above for correspondng input archive
17#include "../example/portable_binary_iarchive.hpp"
18typedef portable_binary_iarchive test_iarchive;
19typedef std::ifstream test_istream;
20
21// and stream open flags
22#define TEST_STREAM_FLAGS std::ios::binary
Note: See TracBrowser for help on using the repository browser.