libxcks
0.1.0.1
|
Handler for reading XCKS files. More...
#include <handlers.hpp>
Public Member Functions | |
virtual | ~XCKSReaderHandler ()=default |
Destructor. More... | |
virtual void | onChecksumsFile (const std::string &version)=0 |
Called on read checksumsFile element. More... | |
virtual void | onGenerated (const std::string &by, const std::string &version, const std::time_t on)=0 |
Called on read generated element. More... | |
virtual void | onAlgorithm (const ChecksumAlgoId type)=0 |
Called on read algorithm element. More... | |
virtual void | onAlgorithmsStart ()=0 |
Called on read algorithms start tag. More... | |
virtual void | onAlgorithmsEnd ()=0 |
Called on read algorithms end tag. More... | |
virtual void | onAlgorithms (const ArrayChecksumAlgoId &types)=0 |
Called on read algorithms element. More... | |
virtual void | onLocalFilesStart ()=0 |
Called on read localFiles start tag. More... | |
virtual void | onLocalFilesEnd ()=0 |
Called on read localFiles end tag. More... | |
virtual void | onParentDirectoryStart ()=0 |
Called on read parentDirectory start tag. More... | |
virtual void | onParentDirectoryStart (const std::filesystem::path &path)=0 |
Called on read parentDirectory start tag. More... | |
virtual void | onParentDirectoryEnd ()=0 |
Called on read parentDirectory end tag. More... | |
virtual void | onDirectoryStart (const std::string name)=0 |
Called on read directory start tag. More... | |
virtual void | onDirectoryStart (const std::filesystem::path &path)=0 |
Called on read directory start tag. More... | |
virtual void | onDirectoryEnd ()=0 |
Called on read directory end tag. More... | |
virtual void | onFileStart (const std::string name)=0 |
Called on read file start tag. More... | |
virtual void | onFileStart (const std::filesystem::path &path)=0 |
Called on read file start tag. More... | |
virtual void | onFileEnd ()=0 |
Called on read file end tag. More... | |
virtual void | onFileInformation (const uintmax_t size=Invalid_File_Size, const time_t date=Invalid_DateTime)=0 |
Called on read information tag (for file). More... | |
virtual void | onFileChecksum (const ChecksumValue &value)=0 |
Called on read checksum element (for file). More... | |
virtual void | onFile (const std::filesystem::path &path, const ArrayChecksumValue &checksums, const uintmax_t size=Invalid_File_Size, const time_t date=Invalid_DateTime)=0 |
Called on read file element. More... | |
virtual void | onFatalError (const std::string &errorMessage, int line, int column)=0 |
Called on a non-recoverable error. More... | |
Handler for reading XCKS files.
Definition at line 49 of file handlers.hpp.
|
virtualdefault |
Destructor.
|
pure virtual |
Called on read algorithm element.
[in] | type | The algorithm of the checksum. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read algorithms element.
[in] | types | The algorithms of the checksum. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read algorithms end tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read algorithms start tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read checksumsFile element.
[in] | version | The version of the XCKS file. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read directory end tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read directory start tag.
[in] | path | The full path of the directory. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read directory start tag.
[in] | name | The name of the directory (without its path). |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on a non-recoverable error.
errorMessage | The error message. |
line | The line number the text where the error has occurred. |
column | The column number where the error has occurred. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read file element.
[in] | path | The full path of the file. |
[in] | checksums | The checksums associated to the file. |
[in] | size | The size of the file. |
[in] | date | The date and time of the file. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read checksum element (for file).
[in] | value | The type and the value of the checksum. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read file end tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read information tag (for file).
[in] | size | The size of the file. |
[in] | date | The date and time of the file. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read file start tag.
[in] | path | The full path of the directory. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read file start tag.
[in] | name | The name of the file (without its path). |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read generated element.
[in] | by | The name of the application that wrote the file. |
[in] | version | The version of the application that wrote the file. |
[in] | on | The writing date and time of the file. |
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read localFiles end tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read localFiles start tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read parentDirectory end tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read parentDirectory start tag.
Implemented in libxcks::XCKSReaderDefaultHandler.
|
pure virtual |
Called on read parentDirectory start tag.
[in] | path | The full path of the directory. |
Implemented in libxcks::XCKSReaderDefaultHandler.