BOOL sha1EList::include(FileData &file) const { std::wstring calcHash = file.SHA1(); if (calcHash[0] == L'!') return true; return std::binary_search(values.begin(),values.end(),calcHash); }
BOOL sha1List::include(FileData &file) const { return std::binary_search(values.begin(),values.end(),file.SHA1()); }
BOOL sha1Match::include(FileData &file) const { return file.SHA1() == sha1Val; }