libzypp  13.10.6
zypp::gzstream_detail::fXstream< _BStream, _StreamBuf > Class Template Reference

Common template to define ifgzstream/ofgzstream reading/writing gzip files. More...

#include <GzStream.h>

Inheritance diagram for zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >:
_BStream

Public Types

typedef gzstream_detail::ZlibError ZlibError
 
typedef _BStream stream_type
 
typedef _StreamBuf streambuf_type
 

Public Member Functions

 fXstream ()
 
 fXstream (const char *file_r)
 
virtual ~fXstream ()
 
bool is_open () const
 
void open (const char *file_r)
 
void close ()
 
ZlibError zError () const
 The last error returned retuned fron zlib. More...
 
const streambuf_typegetbuf () const
 Similar to ios::rdbuf. More...
 

Private Member Functions

std::ios_base::openmode defMode (const std::istream &str_r)
 
std::ios_base::openmode defMode (const std::ostream &str_r)
 

Private Attributes

streambuf_type _streambuf
 

Detailed Description

template<class _BStream, class _StreamBuf>
class zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >

Common template to define ifgzstream/ofgzstream reading/writing gzip files.

Don't use fXstream directly, but ifgzstream or ofgzstream. fXstream is just to avoid almost duplicate code.

Definition at line 199 of file GzStream.h.

Member Typedef Documentation

template<class _BStream , class _StreamBuf >
typedef gzstream_detail::ZlibError zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::ZlibError

Definition at line 203 of file GzStream.h.

template<class _BStream , class _StreamBuf >
typedef _BStream zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::stream_type

Definition at line 204 of file GzStream.h.

template<class _BStream , class _StreamBuf >
typedef _StreamBuf zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::streambuf_type

Definition at line 205 of file GzStream.h.

Constructor & Destructor Documentation

template<class _BStream , class _StreamBuf >
zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::fXstream ( )
inline

Definition at line 207 of file GzStream.h.

template<class _BStream , class _StreamBuf >
zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::fXstream ( const char *  file_r)
inlineexplicit

Definition at line 212 of file GzStream.h.

template<class _BStream , class _StreamBuf >
virtual zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::~fXstream ( )
inlinevirtual

Definition at line 217 of file GzStream.h.

Member Function Documentation

template<class _BStream , class _StreamBuf >
bool zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::is_open ( ) const
inline

Definition at line 221 of file GzStream.h.

template<class _BStream , class _StreamBuf >
void zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::open ( const char *  file_r)
inline

Definition at line 225 of file GzStream.h.

template<class _BStream , class _StreamBuf >
void zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::close ( )
inline

Definition at line 234 of file GzStream.h.

template<class _BStream , class _StreamBuf >
ZlibError zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::zError ( ) const
inline

The last error returned retuned fron zlib.

Definition at line 244 of file GzStream.h.

template<class _BStream , class _StreamBuf >
const streambuf_type& zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::getbuf ( ) const
inline

Similar to ios::rdbuf.

But it returns our specific type, not the generic streambuf *.

Definition at line 250 of file GzStream.h.

template<class _BStream , class _StreamBuf >
std::ios_base::openmode zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::defMode ( const std::istream &  str_r)
inlineprivate

Definition at line 258 of file GzStream.h.

template<class _BStream , class _StreamBuf >
std::ios_base::openmode zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::defMode ( const std::ostream &  str_r)
inlineprivate

Definition at line 262 of file GzStream.h.

Member Data Documentation

template<class _BStream , class _StreamBuf >
streambuf_type zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf
private

Definition at line 255 of file GzStream.h.


The documentation for this class was generated from the following file: