Convenience errno
wrapper.
More...
#include <Errno.h>
|
(Note that these are not member functions.)
|
std::ostream & | operator<< (std::ostream &str, const Errno &obj) |
|
Convenience errno
wrapper.
Definition at line 25 of file Errno.h.
Default ctor: errno
.
Definition at line 29 of file Errno.h.
zypp::Errno::Errno |
( |
bool |
error_r | ) |
|
|
inline |
Ctor set to errno
if error condition, else 0
.
*
int ret =
::write( fd, buffer, size );
*
DBG <<
"write returns: " <<
Errno( ret != size ) << end;
*
*
*
Definition at line 39 of file Errno.h.
zypp::Errno::Errno |
( |
int |
errno_r | ) |
|
|
inline |
Ctor taking an explicit errno value.
Definition at line 42 of file Errno.h.
int zypp::Errno::get |
( |
| ) |
const |
|
inline |
Return the stored errno.
Definition at line 46 of file Errno.h.
zypp::Errno::operator int |
( |
| ) |
const |
|
inline |
Allow implicit conversion to int
.
Definition at line 49 of file Errno.h.
std::string zypp::Errno::asString |
( |
| ) |
const |
|
inline |
Return human readable error string.
Definition at line 52 of file Errno.h.
std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const Errno & |
obj |
|
) |
| |
|
related |
Stream output
Definition at line 59 of file Errno.h.
The documentation for this class was generated from the following file: