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

#include <GzStream.h>

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

List of all members.

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.
const streambuf_typegetbuf () const
 Similar to ios::rdbuf.

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 195 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 199 of file GzStream.h.

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

Definition at line 200 of file GzStream.h.

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

Definition at line 201 of file GzStream.h.


Constructor & Destructor Documentation

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

Definition at line 203 of file GzStream.h.

References zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf.

template<class _BStream, class _StreamBuf>
zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::fXstream ( const char *  file_r  )  [inline, explicit]

Definition at line 208 of file GzStream.h.

References zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf, and zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::open().

template<class _BStream, class _StreamBuf>
virtual zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::~fXstream (  )  [inline, virtual]

Definition at line 213 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 217 of file GzStream.h.

References zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf.

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

Definition at line 221 of file GzStream.h.

References zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf, and zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::defMode().

Referenced by zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::fXstream().

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

Definition at line 230 of file GzStream.h.

References zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf.

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 240 of file GzStream.h.

References zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf.

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 246 of file GzStream.h.

References zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::_streambuf.

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

Definition at line 254 of file GzStream.h.

Referenced by zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::open().

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

Definition at line 258 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 251 of file GzStream.h.

Referenced by zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::close(), zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::fXstream(), zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::getbuf(), zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::is_open(), zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::open(), and zypp::gzstream_detail::fXstream< _BStream, _StreamBuf >::zError().


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 19:23:20 2007 for libzypp by  doxygen 1.5.3