libzypp  17.14.0
zypp::gzstream_detail::ZlibError Struct Reference

Helper class to ship zlib errors. More...

#include <GzStream.h>

Public Member Functions

 ZlibError ()
 
std::string strerror () const
 Return string describing the zlib error code. More...
 

Public Attributes

int _zError
 The zlib error code. More...
 
int _errno
 errno, valid if zError is Z_ERRNO More...
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const ZlibError &obj)
 

Detailed Description

Helper class to ship zlib errors.

Definition at line 43 of file GzStream.h.

Constructor & Destructor Documentation

◆ ZlibError()

zypp::gzstream_detail::ZlibError::ZlibError ( )
inline

Definition at line 55 of file GzStream.h.

Member Function Documentation

◆ strerror()

std::string zypp::gzstream_detail::ZlibError::strerror ( ) const

Return string describing the zlib error code.

Definition at line 54 of file GzStream.cc.

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  str,
const ZlibError obj 
)
related

Stream output.

Definition at line 68 of file GzStream.h.

Member Data Documentation

◆ _zError

int zypp::gzstream_detail::ZlibError::_zError

The zlib error code.

Definition at line 48 of file GzStream.h.

◆ _errno

int zypp::gzstream_detail::ZlibError::_errno

errno, valid if zError is Z_ERRNO

Definition at line 53 of file GzStream.h.


The documentation for this struct was generated from the following files: