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>,
26 typename Allocator_t = std::allocator<Item_t> >
29 typedef std::basic_ostream<Item_t, Traits_t>
OStream_t;
42 using StreamBuf_t::pbase;
43 using StreamBuf_t::pptr;
44 using StreamBuf_t::epptr;
48 std::streamsize
flush();
58 std::vector<char_type, Allocator_t>
buffer;
61 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
62 typename Allocator_t = std::allocator<Item_t> >
65 typedef std::basic_istream<Item_t, Traits_t>
IStream_t;
78 using StreamBuf_t::gptr;
79 using StreamBuf_t::egptr;
80 using StreamBuf_t::eback;
85 void putbackFromZStream();
86 std::streamsize unzipFromStream(char_type *buf, std::streamsize
size);
93 std::vector<char_type, Allocator_t>
buffer;
96 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
97 typename Allocator_t = std::allocator<Item_t> >
112 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
113 typename Allocator_t = std::allocator<Item_t> >
127 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
128 typename Allocator_t = std::allocator<Item_t> >
130 public std::basic_ostream<Item_t, Traits_t> {
137 ZOStreamBase_t(os,
level),
138 OStream_t(ZOStreamBase_t::rdbuf()) {}
142 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
143 typename Allocator_t = std::allocator<Item_t> >
145 public std::basic_istream<Item_t, Traits_t> {
151 ZIStreamBase_t(is), IStream_t(ZIStreamBase_t::rdbuf()) {}
162 #include "PhysicsTools/MVAComputer/interface/zstream.icc" 164 #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_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
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
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
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)