12 #ifndef ZYPP_BASE_ERRNO_H
13 #define ZYPP_BASE_ERRNO_H
49 operator int()
const {
return get(); }
65 #endif // ZYPP_BASE_ERRNO_H
Convenience errno wrapper.
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.
std::string asString() const
Return human readable error string.
std::string form(const char *format,...)
Printf style construction of std::string.
std::ostream & operator<<(std::ostream &str, const Errno &obj)
std::string strerror(int errno_r)
Return string describing the error_r code.