zypp::ChecksumFileChecker Class Reference

Built in file checkers. More...

#include <FileChecker.h>

List of all members.

Public Member Functions

 ChecksumFileChecker (const CheckSum &checksum)
 Constructor.
void operator() (const Pathname &file) const
 Try to validate the file.

Private Attributes

CheckSum _checksum


Detailed Description

Built in file checkers.

Checks for a valid checksum and interacts with the user.

Definition at line 63 of file FileChecker.h.


Constructor & Destructor Documentation

zypp::ChecksumFileChecker::ChecksumFileChecker ( const CheckSum checksum  ) 

Constructor.

Parameters:
checksum Checksum that validates the file

Definition at line 25 of file FileChecker.cc.


Member Function Documentation

void zypp::ChecksumFileChecker::operator() ( const Pathname &  file  )  const

Try to validate the file.

Parameters:
file File to validate.
Exceptions:
CheckSumCheckException if validation fails

Definition at line 30 of file FileChecker.cc.

References _checksum, zypp::CheckSum::checksum(), zypp::filesystem::checksum(), zypp::CheckSum::empty(), MIL, report, zypp::CheckSum::type(), WAR, and ZYPP_THROW.


Member Data Documentation

Definition at line 79 of file FileChecker.h.

Referenced by operator()().


The documentation for this class was generated from the following files:

doxygen