#include <checksumutil.hpp>
Inheritance diagram for ChecksumFileCalculator:
Public Member Functions | |
State | calculate (const wxString &fileName, const ArrayChecksum &checksums, wxArrayString &sumValues) |
Calculates the checksums from the given file. | |
State | calculate (const wxString &fileName, wxString &sumValue) |
Calculates the checksum from the given file. | |
State | check (const wxString &fileName, const wxString &value) |
Checks the checksum from the given file. | |
ChecksumFileCalculator (Checksum *checksum, ChecksumProgress *progressHandler=NULL) | |
Constructor with a checksum instance to use and an optional progress handler. | |
ChecksumFileCalculator () | |
Default constructor. | |
Protected Member Functions | |
wxFileInputStream * | getFileInputStream (const wxString &fileName, State &state) |
Gets a wxFileInputStream for reading the file. | |
void | initBufferSize () |
Initializes the buffer size for reading files. |
Please note that all the pointers passed to this class are not freed, it is the responsability to the users of this class to free them.
Definition at line 126 of file checksumutil.hpp.
|
Default constructor.
Definition at line 322 of file checksumutil.cpp. References initBufferSize(). |
|
Constructor with a checksum instance to use and an optional progress handler.
Definition at line 335 of file checksumutil.cpp. References initBufferSize(). |
|
Calculates the checksums from the given file.
Definition at line 446 of file checksumutil.cpp. References calculate(), and getFileInputStream(). |
|
Calculates the checksum from the given file.
Definition at line 413 of file checksumutil.cpp. References calculate(), and getFileInputStream(). Referenced by ChecksumsListView::addFiles(), dlgBatchCreation::batchCreation(), calculate(), and ChecksumsListView::recompute(). |
|
Checks the checksum from the given file.
Definition at line 480 of file checksumutil.cpp. References check(), and getFileInputStream(). Referenced by ChecksumsListView::check(), check(), and dlgMultiCheck::checkFile(). |
|
Gets a wxFileInputStream for reading the file.
Definition at line 377 of file checksumutil.cpp. References getFileInputStream(). Referenced by calculate(), check(), and getFileInputStream(). |
|
Initializes the buffer size for reading files.
Definition at line 347 of file checksumutil.cpp. References DEF_BUFF_SIZE, AppPrefs::get(), MAX_BUFF_SIZE, and AppPrefs::readLong(). Referenced by ChecksumFileCalculator(). |