#include <sfvfile.hpp>
Inheritance diagram for SFVFile:
Public Member Functions | |
Checksum * | getChecksumCalculator () const |
Returns an instance of a class that permits to compute the CRC-32 value. | |
virtual wxString | getFileType () const |
Returns the type of the file. | |
bool | read (const wxFileName &fileName) |
Reads the checksums from a SFV file. | |
SFVFile () | |
Default constructor. | |
bool | write (const wxFileName &fileName) |
Writes the checksums in a file. | |
Static Public Member Functions | |
SumFile * | getNewInstance () |
Gets a new instance of this class. | |
bool | IsValidChecksum (const wxString &checksum) |
Indicates if the given checksum is valid. | |
Protected Member Functions | |
void | clone (const SFVFile &source) |
Clones the source instance in this instance. | |
Private Member Functions | |
virtual SFVFile & | operator= (const SFVFile &source) |
Assignment operator. | |
SFVFile (const SFVFile &source) | |
Copy constructor. |
Definition at line 38 of file sfvfile.hpp.
|
Copy constructor.
Definition at line 82 of file sfvfile.cpp. References clone(). |
|
Default constructor.
Definition at line 57 of file sfvfile.cpp. Referenced by getNewInstance(). |
|
Clones the source instance in this instance. Don't forget to call this method when cloning inherited classes.
Definition at line 70 of file sfvfile.cpp. References clone(). Referenced by clone(), operator=(), and SFVFile(). |
|
Returns an instance of a class that permits to compute the CRC-32 value.
The calling function is responsible of the deletion of the instance with the
Implements SumFile. Definition at line 111 of file sfvfile.cpp. |
|
Returns the type of the file.
Implements SumFile. Definition at line 123 of file sfvfile.cpp. |
|
Gets a new instance of this class.
The caller is responsible of the deletion of the instance with the
Definition at line 423 of file sfvfile.cpp. References SFVFile(). |
|
Indicates if the given checksum is valid.
Definition at line 382 of file sfvfile.cpp. References IsValidChecksum(). Referenced by IsValidChecksum(), and read(). |
|
Assignment operator.
Definition at line 95 of file sfvfile.cpp. References clone(), and operator=(). Referenced by operator=(). |
|
Reads the checksums from a SFV file. After the reading of the file, the state of the file should be unmodified and on success, the checksum file name must be the given one (absolute path).
The paths of the files in the ChecksumData must be relative to the path of
Implements SumFile. Definition at line 144 of file sfvfile.cpp. References AppPrefs::get(), IsValidChecksum(), read(), AppPrefs::readLong(), and SumFile::reset(). Referenced by openChecksumFile(), and read(). |
|
Writes the checksums in a file.
After the writing of the file, the state of the file should be unmodified and the file name must be modified to
Implements SumFile. Definition at line 264 of file sfvfile.cpp. References AppPrefs::get(), ChecksumData::getChecksum(), SumFile::getChecksumDataBegin(), SumFile::getChecksumDataBeginI(), SumFile::getChecksumDataEnd(), SumFile::getChecksumDataEndI(), ChecksumData::getFileName(), AppPrefs::readBool(), AppPrefs::readLong(), AppPrefs::readString(), ChecksumData::setFileName(), write(), wxCGetFileLength, and wxCOff_t. Referenced by write(). |