Go to the documentation of this file.
9 #ifndef ZYPP_BASE_FXSTREAM_H
10 #define ZYPP_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; }
ZlibError zError() const
The last error returned retuned from zlib.
TStreamBuf streambuf_type
fXstream(const char *file_r)
Easy-to use interface to the ZYPP dependency resolver.
typename TStreamBuf::error_type ZlibError
Common template to define ifgzstream/ofgzstream reading/writing compressed files.
void open(const char *file_r)
std::ios_base::openmode defMode(const std::ostream &)
const streambuf_type & getbuf() const
Similar to ios::rdbuf.
streambuf_type _streambuf
std::ios_base::openmode defMode(const std::istream &)