12 #ifndef ZYPP_FILECHECKER_H 13 #define ZYPP_FILECHECKER_H 37 typedef function<void ( const Pathname &file )>
FileChecker;
85 void operator()(
const Pathname &file )
const;
120 void setKeyContext(
const KeyContext & keycontext);
131 {
return _fileAccepted; }
138 {
return _fileValidated; }
159 void operator()(
const Pathname &file )
const;
175 void operator()(
const Pathname &file )
const;
195 void add(
const FileChecker &checker );
199 void operator()(
const Pathname &file )
const;
207 std::ostream &
operator<<( std::ostream &
str,
const FileChecker & obj );
212 #endif // ZYPP_FILECHECKER_H Checks for nothing Used as the default checker.
const std::string & msg() const
Return the message string provided to the ctor.
Checks for the validity of a signature.
String related utilities and Regular expression matching.
std::list< FileChecker > _checkers
DefaultIntegral< bool, false > _fileAccepted
bool fileAccepted() const
Return whether the last file passed to operator() was accepted.
DefaultIntegral< bool, false > _fileValidated
CheckSumCheckException(const std::string &msg)
SignatureCheckException ExceptionType
Checker composed of more checkers.
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
friend std::ostream & operator<<(std::ostream &str, const Exception &obj)
Base class for Exception.
std::string checksum(const Pathname &file, const std::string &algorithm)
Compute a files checksum.
bool fileValidated() const
Return whether the last file passed to operator() was actually sucessfully verified.
SignatureCheckException(const std::string &msg)
function< void(const Pathname &file)> FileChecker
Functor signature used to check files.
const KeyContext & keyContext() const
Return the current context.
Easy-to use interface to the ZYPP dependency resolver.
CheckSumCheckException ExceptionType
FileCheckException(const std::string &msg)