libxcks
0.1.0.1
|
Provides checksums values from an array of wanted algorithms of checksums for the XCKS writer. More...
#include <handlers.hpp>
Public Types | |
enum class | Status : int { Ok , FileNotFound , ReadError , BadChecksumValue , BadDuplicateValue , MissingAlgorithm } |
Return status of getChecksumValues() . More... | |
Public Member Functions | |
XCKSWriterChecksumProvider ()=default | |
Default constructor. More... | |
virtual | ~XCKSWriterChecksumProvider ()=default |
Destructor. More... | |
virtual Status | getChecksumValues (ArrayChecksumValue &sumValues, uintmax_t &filesize, time_t &filedatetime, const ArrayChecksumAlgoId &ids, const std::filesystem::path &filepath)=0 |
Provides checksums values from an array of wanted algorithms of checksums. More... | |
Provides checksums values from an array of wanted algorithms of checksums for the XCKS writer.
Definition at line 374 of file handlers.hpp.
|
strong |
Return status of getChecksumValues()
.
Definition at line 378 of file handlers.hpp.
|
default |
Default constructor.
|
virtualdefault |
Destructor.
|
pure virtual |
Provides checksums values from an array of wanted algorithms of checksums.
When returning sumValues
must contains the checksums values required in ids
, in any order, but no less and no more.
[out] | sumValues | The calculated values. |
[out] | filesize | The size of path . Can be Invalid_File_Size . |
[out] | filedatetime | The date/time of path . Can be Invalid_DateTime . |
[in] | ids | The ids of the wanted algorithm of checksums. |
[in] | filepath | Absolute path of the file from which the checksums must be calculated. |