]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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. | |
7 | // file includes for testing a custom archive. | |
8 | // as an example this tests the portable binary archive | |
9 | ||
10 | #include <fstream> | |
11 | ||
12 | // #include output archive header | |
13 | #include "../example/portable_binary_oarchive.hpp" | |
f67539c2 | 14 | // define output archive class to be used |
7c673cae FG |
15 | typedef portable_binary_oarchive test_oarchive; |
16 | // and corresponding stream | |
17 | typedef std::ofstream test_ostream; | |
18 | ||
19 | // repeat the above for correspondng input archive | |
20 | #include "../example/portable_binary_iarchive.hpp" | |
21 | typedef portable_binary_iarchive test_iarchive; | |
22 | typedef std::ifstream test_istream; | |
23 | ||
f67539c2 | 24 | // since this archive class isn't compiled into the |
7c673cae FG |
25 | // boost serialization library, include this here |
26 | // so that things get instantiated | |
27 | #include "../example/portable_binary_oarchive.cpp" | |
28 | #include "../example/portable_binary_iarchive.cpp" | |
29 | ||
30 | // and stream open flags | |
31 | #define TEST_STREAM_FLAGS std::ios::binary |