12 #ifndef ZYPP_CHECKSUM_H
13 #define ZYPP_CHECKSUM_H
46 CheckSum(
const std::string &
type,
const std::string & checksum );
50 CheckSum(
const std::string & type, std::istream & input_r );
52 #ifndef SWIG // Swig treats it as syntax error
54 CheckSum(
const std::string & type, std::istream && input_r )
60 static const std::string &
md5Type();
61 static const std::string &
shaType();
62 static const std::string &
sha1Type();
84 std::string
type()
const;
110 #endif // ZYPP_CHECKSUM_H
static CheckSum sha(const std::string &checksum)
bool operator!=(const CountryCode &lhs, const CountryCode &rhs)
const std::string & msg() const
Return the message string provided to the ctor.
std::ostream & dumpAsXmlOn(std::ostream &str, const CheckSum &obj)
static const std::string & shaType()
CheckSumException(const std::string &msg)
static CheckSum md5(const std::string &checksum)
std::string asString() const
static CheckSum sha1(std::istream &input_r)
static const std::string & sha256Type()
static CheckSum md5(std::istream &input_r)
std::ostream & operator<<(std::ostream &str, const Exception &obj)
std::string checksum() const
static CheckSum sha(std::istream &input_r)
static CheckSum sha256(const std::string &checksum)
bool operator==(const StrMatcher &lhs, const StrMatcher &rhs)
static CheckSum sha256(std::istream &input_r)
Base class for Exception.
static const std::string & sha1Type()
CheckSum()
Default Ctor: empty checksum.
static CheckSum sha1(const std::string &checksum)
static const std::string & md5Type()
CheckSum(const std::string &type, std::istream &&input_r)
Move Ctor.