18#ifndef CUPT_HASHSUMS_SEEN
19#define CUPT_HASHSUMS_SEEN
32 enum Type { MD5, SHA1, SHA256, Count };
47 bool verify(
const string& path)
const;
66 void fill(
const string& path);
hash sums
Definition hashsums.hpp:29
Type
hash sum type
Definition hashsums.hpp:32
const string & operator[](const Type &type) const
shortcut to values[type]
void fill(const string &path)
fills the object with the hash sums of the file content
static string getHashOfString(const Type &type, const string &pattern)
gets hash of the string
string & operator[](const Type &type)
shortcut to values[type]
bool verify(const string &path) const
does file content match hash sums?
bool empty() const
does object contain no hash sums?
bool match(const HashSums &other) const
compares with other HashSums object