1 #ifndef PhysicsTools_MVAComputer_zstream_h
2 #define PhysicsTools_MVAComputer_zstream_h
26 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
27 typename Allocator_t = std::allocator<Item_t> >
30 typedef std::basic_ostream<Item_t, Traits_t>
OStream_t;
43 using StreamBuf_t::pbase;
44 using StreamBuf_t::pptr;
45 using StreamBuf_t::epptr;
49 std::streamsize
flush();
59 std::vector<char_type, Allocator_t>
buffer;
62 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
63 typename Allocator_t = std::allocator<Item_t> >
66 typedef std::basic_istream<Item_t, Traits_t>
IStream_t;
79 using StreamBuf_t::gptr;
80 using StreamBuf_t::egptr;
81 using StreamBuf_t::eback;
94 std::vector<char_type, Allocator_t>
buffer;
97 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
98 typename Allocator_t = std::allocator<Item_t> >
113 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
114 typename Allocator_t = std::allocator<Item_t> >
128 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
129 typename Allocator_t = std::allocator<Item_t> >
131 public std::basic_ostream<Item_t, Traits_t> {
143 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
144 typename Allocator_t = std::allocator<Item_t> >
146 public std::basic_istream<Item_t, Traits_t> {
163 #include "PhysicsTools/MVAComputer/interface/zstream.icc"
165 #endif // PhysicsTools_MVAComputer_zstream_h
std::basic_streambuf< Item_t, Traits_t > StreamBuf_t
std::basic_ostream< Item_t, Traits_t > OStream_t
basic_izstream< char > izstream
basic_ozstream< char > ozstream
Traits_t::pos_type pos_type
basic_izstream< wchar_t > wizstream
basic_izstreambuf(IStream_t *is)
basic_ozstream(OStream_t *os, int open_mode=std::ios::out, int level=9)
basic_izstreambuf< Item_t, Traits_t, Allocator_t > ZIStreamBuf_t
std::basic_istream< Item_t, Traits_t > IStream_t
Traits_t::int_type int_type
basic_izstreambase< Item_t, Traits_t, Allocator_t > ZIStreamBase_t
std::basic_istream< Item_t, Traits_t > IStream_t
Traits_t::pos_type pos_type
std::streamsize unzipFromStream(char_type *buf, std::streamsize size)
basic_ozstream< wchar_t > wozstream
basic_ozstreambuf< Item_t, Traits_t, Allocator_t > ZOStreamBuf_t
std::vector< char_type, Allocator_t > buffer
basic_izstream(IStream_t *is, int open_mode=std::ios::in)
Traits_t::int_type int_type
int_type overflow(int_type c)
basic_ozstreambase(OStream_t *os, int level)
std::basic_ostream< Item_t, Traits_t > OStream_t
std::vector< byte_type > inputBuffer
void putbackFromZStream()
basic_ozstreambase< Item_t, Traits_t, Allocator_t > ZOStreamBase_t
basic_izstreambase(IStream_t *is)
Traits_t::off_type off_type
std::basic_istream< Item_t, Traits_t > IStream_t
basic_ozstreambuf(OStream_t *os, int level)
Traits_t::off_type off_type
std::vector< byte_type > outputBuffer
tuple size
Write out results.
std::basic_ostream< Item_t, Traits_t > OStream_t
std::vector< char_type, Allocator_t > buffer
std::basic_streambuf< Item_t, Traits_t > StreamBuf_t
bool zipToStream(char_type *buf, std::streamsize size)