1 #ifndef PhysicsTools_MVAComputer_zstream_h 2 #define PhysicsTools_MVAComputer_zstream_h 25 template <
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
typename Allocator_t = std::allocator<Item_t> >
28 typedef std::basic_ostream<Item_t, Traits_t>
OStream_t;
41 using StreamBuf_t::epptr;
42 using StreamBuf_t::pbase;
43 using StreamBuf_t::pptr;
47 std::streamsize
flush();
57 std::vector<char_type, Allocator_t>
buffer;
60 template <
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
typename Allocator_t = std::allocator<Item_t> >
63 typedef std::basic_istream<Item_t, Traits_t>
IStream_t;
76 using StreamBuf_t::eback;
77 using StreamBuf_t::egptr;
78 using StreamBuf_t::gptr;
91 std::vector<char_type, Allocator_t>
buffer;
94 template <
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
typename Allocator_t = std::allocator<Item_t> >
97 typedef std::basic_ostream<Item_t, Traits_t>
OStream_t;
108 template <
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
typename Allocator_t = std::allocator<Item_t> >
122 template <
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
typename Allocator_t = std::allocator<Item_t> >
124 public std::basic_ostream<Item_t, Traits_t> {
134 template <
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
typename Allocator_t = std::allocator<Item_t> >
136 public std::basic_istream<Item_t, Traits_t> {
153 #include "PhysicsTools/MVAComputer/interface/zstream.icc" 155 #endif // PhysicsTools_MVAComputer_zstream_h
std::basic_streambuf< Item_t, Traits_t > StreamBuf_t
~basic_ozstreambuf() override
std::basic_ostream< Item_t, Traits_t > OStream_t
basic_izstream< char > izstream
basic_ozstream< char > ozstream
Traits_t::pos_type pos_type
int_type overflow(int_type c) override
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
~basic_izstreambuf() override
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
basic_ozstreambase(OStream_t *os, int level)
int_type underflow() override
std::basic_ostream< Item_t, Traits_t > OStream_t
std::vector< byte_type > inputBuffer
~basic_izstream() override
void putbackFromZStream()
basic_ozstreambase< Item_t, Traits_t, Allocator_t > ZOStreamBase_t
~basic_ozstream() override
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
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)