/* */ #ifndef _D_ITERATABLE_VALIDATOR_H_ #define _D_ITERATABLE_VALIDATOR_H_ #include "common.h" /** * This class provides the interface to validate files. * * Be aware to call init() before first validateChunk() call. * Then, call validateChunk() until finished() returns true. * The progress information is available using getCurrentOffset() and * getTotalLength(). */ class IteratableValidator { public: virtual ~IteratableValidator() {} virtual void init() = 0; virtual void validateChunk() = 0; virtual bool finished() const = 0; virtual int64_t getCurrentOffset() const = 0; virtual int64_t getTotalLength() const = 0; }; typedef SharedHandle IteratableValidatorHandle; #endif // _D_ITERATABLE_VALIDATOR_H_