9#ifndef ZYPP_CORE_BASE_FXSTREAM_H
10#define ZYPP_CORE_BASE_FXSTREAM_H
25 template<
class TBStream,
class TStreamBuf>
52 open(
const char * file_r )
55 this->setstate(std::ios_base::failbit);
64 this->setstate(std::ios_base::failbit);
84 std::ios_base::openmode
86 {
return std::ios_base::in; }
88 std::ios_base::openmode
90 {
return std::ios_base::out; }
Common template to define ifgzstream/ofgzstream reading/writing compressed files.
std::ios_base::openmode defMode(const std::istream &)
ZlibError zError() const
The last error returned retuned from zlib.
const streambuf_type & getbuf() const
Similar to ios::rdbuf.
std::ios_base::openmode defMode(const std::ostream &)
TStreamBuf streambuf_type
fXstream(const char *file_r)
typename TStreamBuf::error_type ZlibError
streambuf_type _streambuf
void open(const char *file_r)
Easy-to use interface to the ZYPP dependency resolver.