constants.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
  2. // (C) Copyright 2003-2007 Jonathan Turkanis
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
  5. // See http://www.boost.org/libs/iostreams for documentation.
  6. // Contains constants used by library.
  7. #ifndef BOOST_IOSTREAMS_CONSTANTS_HPP_INCLUDED
  8. #define BOOST_IOSTREAMS_CONSTANTS_HPP_INCLUDED
  9. #if defined(_MSC_VER)
  10. # pragma once
  11. #endif
  12. #ifndef BOOST_IOSTREAMS_DEFAULT_DEVICE_BUFFER_SIZE
  13. # define BOOST_IOSTREAMS_DEFAULT_DEVICE_BUFFER_SIZE 4096
  14. #endif
  15. #ifndef BOOST_IOSTREAMS_DEFAULT_FILTER_BUFFER_SIZE
  16. # define BOOST_IOSTREAMS_DEFAULT_FILTER_BUFFER_SIZE 128
  17. #endif
  18. #ifndef BOOST_IOSTREAMS_DEFAULT_PBACK_BUFFER_SIZE
  19. # define BOOST_IOSTREAMS_DEFAULT_PBACK_BUFFER_SIZE 4
  20. #endif
  21. #include <boost/iostreams/detail/ios.hpp> // streamsize.
  22. namespace boost { namespace iostreams {
  23. const std::streamsize default_device_buffer_size =
  24. BOOST_IOSTREAMS_DEFAULT_DEVICE_BUFFER_SIZE;
  25. const std::streamsize default_filter_buffer_size =
  26. BOOST_IOSTREAMS_DEFAULT_FILTER_BUFFER_SIZE;
  27. const std::streamsize default_pback_buffer_size =
  28. BOOST_IOSTREAMS_DEFAULT_PBACK_BUFFER_SIZE;
  29. } } // End namespaces iostreams, boost.
  30. #endif // #ifndef BOOST_IOSTREAMS_CONSTANTS_HPP_INCLUDED