12#ifndef ZYPP_BASE_ERRNO_H
13#define ZYPP_BASE_ERRNO_H
18#include <zypp-core/base/String.h>
39 Errno(
bool error_r ) :
_errno( error_r ? errno : 0 ) {}
49 operator int()
const {
return get(); }
59 inline std::ostream &
operator<<( std::ostream &
str,
const Errno & obj )
60 {
return str << obj.asString(); }
int get() const
Return the stored errno.
std::string asString() const
Return human readable error string.
Errno()
Default ctor: errno.
String related utilities and Regular expression matching.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)