Turi Create  4.0
cache_stream.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef TURI_FILEIO_CACHE_STREAM_HPP
7 #define TURI_FILEIO_CACHE_STREAM_HPP
8 
9 #include<core/storage/fileio/cache_stream_source.hpp>
10 #include<core/storage/fileio/cache_stream_sink.hpp>
11 
12 namespace turi {
13 namespace fileio{
14 /**
15  * \internal
16  * \ingroup fileio
17  * icache_stream provides an input stream to a cache object;
18  * this should not be used directly.
19  * \see general_ifstream
20  */
21 typedef boost::iostreams::stream<turi::fileio_impl::cache_stream_source>
23 
24 /**
25  * \internal
26  * \ingroup fileio
27  * ocache_stream provides an output stream to a cache object;
28  * this should not be used directly.
29  * \see general_ofstream
30  */
31 typedef boost::iostreams::stream<turi::fileio_impl::cache_stream_sink>
33 
34 } // end of fileio
35 } // end of turicreate
36 
37 #endif
boost::iostreams::stream< turi::fileio_impl::cache_stream_source > icache_stream
boost::iostreams::stream< turi::fileio_impl::cache_stream_sink > ocache_stream