File indexing completed on 2025-01-18 09:38:50
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_IOSTREAMS_DETAIL_ERROR_HPP_INCLUDED
0009 #define BOOST_IOSTREAMS_DETAIL_ERROR_HPP_INCLUDED
0010
0011 #if defined(_MSC_VER)
0012 # pragma once
0013 #endif
0014
0015 #include <boost/iostreams/detail/ios.hpp> // failure.
0016
0017 namespace boost { namespace iostreams { namespace detail {
0018
0019 inline BOOST_IOSTREAMS_FAILURE cant_read()
0020 { return BOOST_IOSTREAMS_FAILURE("no read access"); }
0021
0022 inline BOOST_IOSTREAMS_FAILURE cant_write()
0023 { return BOOST_IOSTREAMS_FAILURE("no write access"); }
0024
0025 inline BOOST_IOSTREAMS_FAILURE cant_seek()
0026 { return BOOST_IOSTREAMS_FAILURE("no random access"); }
0027
0028 inline BOOST_IOSTREAMS_FAILURE bad_read()
0029 { return BOOST_IOSTREAMS_FAILURE("bad read"); }
0030
0031 inline BOOST_IOSTREAMS_FAILURE bad_putback()
0032 { return BOOST_IOSTREAMS_FAILURE("putback buffer full"); }
0033
0034 inline BOOST_IOSTREAMS_FAILURE bad_write()
0035 { return BOOST_IOSTREAMS_FAILURE("bad write"); }
0036
0037 inline BOOST_IOSTREAMS_FAILURE write_area_exhausted()
0038 { return BOOST_IOSTREAMS_FAILURE("write area exhausted"); }
0039
0040 inline BOOST_IOSTREAMS_FAILURE bad_seek()
0041 { return BOOST_IOSTREAMS_FAILURE("bad seek"); }
0042
0043 } } }
0044
0045 #endif