#include <CheckSum.h>
Public Member Functions | |
| CheckSum (const std::string &type, const std::string &checksum) | |
| Creates a checksum for algorithm. | |
| CheckSum (const std::string &type, std::istream &input_r) | |
| CheckSum () | |
| std::string | type () const |
| std::string | checksum () const |
| bool | empty () const |
Static Public Member Functions | |
| static const std::string & | md5Type () |
| static const std::string & | shaType () |
| static const std::string & | sha1Type () |
| static const std::string & | sha256Type () |
| static CheckSum | md5 (const std::string &checksum) |
| static CheckSum | sha (const std::string &checksum) |
| static CheckSum | sha1 (const std::string &checksum) |
| static CheckSum | sha256 (const std::string &checksum) |
| static CheckSum | md5 (std::istream &input_r) |
| static CheckSum | sha (std::istream &input_r) |
| static CheckSum | sha1 (std::istream &input_r) |
| static CheckSum | sha256 (std::istream &input_r) |
Private Attributes | |
| std::string | _type |
| std::string | _checksum |
Related Functions | |
| (Note that these are not member functions.) | |
| bool | operator== (const CheckSum &lhs, const CheckSum &rhs) |
| bool | operator!= (const CheckSum &lhs, const CheckSum &rhs) |
| std::ostream & | operator<< (std::ostream &str, const CheckSum &obj) |
| Stream output. | |
Definition at line 25 of file CheckSum.h.
| zypp::CheckSum::CheckSum | ( | const std::string & | type, | |
| const std::string & | checksum | |||
| ) |
Creates a checksum for algorithm.
| type |
| if | the checksum is invalid and can't be constructed |
Definition at line 41 of file CheckSum.cc.
References _checksum, _type, md5Type(), sha1Type(), sha256Type(), shaType(), and WAR.
| zypp::CheckSum::CheckSum | ( | const std::string & | type, | |
| std::istream & | input_r | |||
| ) |
Definition at line 98 of file CheckSum.cc.
References _checksum, _type, zypp::Digest::digest(), and zypp::str::toLower().
| zypp::CheckSum::CheckSum | ( | ) |
| const std::string & zypp::CheckSum::md5Type | ( | ) | [static] |
| const std::string & zypp::CheckSum::shaType | ( | ) | [static] |
| const std::string & zypp::CheckSum::sha1Type | ( | ) | [static] |
Definition at line 31 of file CheckSum.cc.
References _type.
Referenced by CheckSum(), sha(), and sha1().
| const std::string & zypp::CheckSum::sha256Type | ( | ) | [static] |
Definition at line 34 of file CheckSum.cc.
References _type.
Referenced by CheckSum(), and sha256().
| static CheckSum zypp::CheckSum::md5 | ( | const std::string & | checksum | ) | [inline, static] |
| static CheckSum zypp::CheckSum::sha | ( | const std::string & | checksum | ) | [inline, static] |
| static CheckSum zypp::CheckSum::sha1 | ( | const std::string & | checksum | ) | [inline, static] |
Definition at line 46 of file CheckSum.h.
References CheckSum(), and sha1Type().
Referenced by zypp::operator &&().
| static CheckSum zypp::CheckSum::sha256 | ( | const std::string & | checksum | ) | [inline, static] |
| static CheckSum zypp::CheckSum::md5 | ( | std::istream & | input_r | ) | [inline, static] |
| static CheckSum zypp::CheckSum::sha | ( | std::istream & | input_r | ) | [inline, static] |
| static CheckSum zypp::CheckSum::sha1 | ( | std::istream & | input_r | ) | [inline, static] |
| static CheckSum zypp::CheckSum::sha256 | ( | std::istream & | input_r | ) | [inline, static] |
| std::string zypp::CheckSum::type | ( | ) | const |
Definition at line 111 of file CheckSum.cc.
References _type.
Referenced by zypp::cache::checksum_to_string(), empty(), zypp::filesystem::is_checksum(), zypp::ChecksumFileChecker::operator()(), zypp::operator<<(), operator==(), and zypp::repo::RepoMediaAccess::provideFile().
| std::string zypp::CheckSum::checksum | ( | ) | const |
Definition at line 114 of file CheckSum.cc.
References _checksum.
Referenced by zypp::cache::checksum_to_string(), empty(), zypp::filesystem::is_checksum(), zypp::operator &&(), zypp::ChecksumFileChecker::operator()(), zypp::operator<<(), and operator==().
| bool zypp::CheckSum::empty | ( | ) | const |
Definition at line 117 of file CheckSum.cc.
References checksum(), and type().
Referenced by zypp::ChecksumFileChecker::operator()(), and zypp::repo::RepoMediaAccess::provideFile().
Definition at line 135 of file CheckSum.cc.
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const CheckSum & | obj | |||
| ) | [related] |
std::string zypp::CheckSum::_type [private] |
Definition at line 66 of file CheckSum.h.
Referenced by CheckSum(), md5Type(), sha1Type(), sha256Type(), shaType(), and type().
std::string zypp::CheckSum::_checksum [private] |
1.5.3