portable_binary_archive.hpp 927 B

12345678910111213141516171819202122
  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. // See http://www.boost.org for updates, documentation, and revision history.// file includes for testing a custom archive.
  6. // as an example this tests the portable binary archive
  7. // #include output archive header
  8. #include "../example/portable_binary_oarchive.hpp"
  9. // define output archive class to be used
  10. typedef portable_binary_oarchive test_oarchive;
  11. // and corresponding stream
  12. typedef std::ofstream test_ostream;
  13. // repeat the above for correspondng input archive
  14. #include "../example/portable_binary_iarchive.hpp"
  15. typedef portable_binary_iarchive test_iarchive;
  16. typedef std::ifstream test_istream;
  17. // and stream open flags
  18. #define TEST_STREAM_FLAGS std::ios::binary