6 #ifndef FILEIO_GENERAL_ISTREAM_HPP 7 #define FILEIO_GENERAL_ISTREAM_HPP 11 #include <boost/iostreams/stream.hpp> 12 #include <boost/iostreams/filtering_stream.hpp> 13 #include <core/storage/fileio/general_fstream_source.hpp> 14 #include <core/storage/fileio/general_fstream_sink.hpp> 15 #include <core/export.hpp> 18 typedef boost::iostreams::stream<fileio_impl::general_fstream_source>
19 general_ifstream_base;
50 std::string opened_filename;
84 size_t get_bytes_read();
89 std::string filename()
const;
94 std::shared_ptr<std::istream> get_underlying_stream();
99 typedef boost::iostreams::stream<fileio_impl::general_fstream_sink>
100 general_ofstream_base;
132 std::string opened_filename;
175 size_t get_bytes_written()
const;
180 std::string filename()
const;
185 #endif // TURI_UTIL_GENERAL_ISTREAM_HPP