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 12 typedef portable_binary_oarchive test_oarchive; 13 // and corresponding stream 14 typedef std::ofstream test_ostream; 15 16 // repeat the above for correspondng input archive 17 #include "../example/portable_binary_iarchive.hpp" 18 typedef portable_binary_iarchive test_iarchive; 19 typedef std::ifstream test_istream; 20 21 // and stream open flags 22 #define TEST_STREAM_FLAGS std::ios::binary 23