zypp::CompositeFileChecker Class Reference

Checker composed of more checkers. More...

#include <FileChecker.h>

List of all members.

Public Member Functions

void add (const FileChecker &checker)
void operator() (const Pathname &file) const
int checkersSize () const

Private Attributes

std::list< FileChecker_checkers


Detailed Description

Checker composed of more checkers.

Allows to create a checker composed of various checkers altothether. It will only validate if all the checkers validate.

 CompositeFileChecker com;
 com.add(checker1);
 com.add(checker2);
 fetcher.enqueue(location, com);

Definition at line 155 of file FileChecker.h.


Member Function Documentation

void zypp::CompositeFileChecker::add ( const FileChecker checker  ) 

Definition at line 89 of file FileChecker.cc.

References _checkers.

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

Exceptions:
FileCheckException if validation fails

Definition at line 72 of file FileChecker.cc.

References _checkers, and ERR.

int zypp::CompositeFileChecker::checkersSize (  )  const [inline]

Definition at line 164 of file FileChecker.h.

References _checkers.


Member Data Documentation

Definition at line 166 of file FileChecker.h.

Referenced by add(), checkersSize(), and operator()().


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

doxygen