|
libzypp
9.1.2
|
Convenience errno wrapper.
More...
#include <Errno.h>
Public Member Functions | |
| Errno () | |
Default ctor: errno. | |
| Errno (bool error_r) | |
Ctor set to errno if error condition, else 0. | |
| Errno (int errno_r) | |
| Ctor taking an explicit errno value. | |
| int | get () const |
| Return the stored errno. | |
| operator int () const | |
Allow implicit conversion to int. | |
| std::string | asString () const |
| Return human readable error string. | |
Private Attributes | |
| int | _errno |
Related Functions | |
(Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const Errno &obj) |
| zypp::Errno::Errno | ( | ) | [inline] |
| zypp::Errno::Errno | ( | bool | error_r | ) | [inline] |
| zypp::Errno::Errno | ( | int | errno_r | ) | [inline] |
| int zypp::Errno::get | ( | ) | const [inline] |
| zypp::Errno::operator int | ( | ) | const [inline] |
| std::string zypp::Errno::asString | ( | ) | const [inline] |
Return human readable error string.
Definition at line 52 of file Errno.h.
References _errno, zypp::str::form(), and zypp::str::strerror().
Referenced by operator<<().
| std::ostream & operator<< | ( | std::ostream & | str, |
| const Errno & | obj | ||
| ) | [related] |
int zypp::Errno::_errno [private] |
Definition at line 55 of file Errno.h.
Referenced by asString(), and get().
1.7.6.1