libxcks
0.1.0.1
|
Default handler for reading XCKS files. More...
#include <handlers.hpp>
Public Member Functions | |
virtual | ~XCKSReaderDefaultHandler ()=default |
Destructor. More... | |
void | onChecksumsFile (const std::string &version) override |
Called on read checksumsFile element. More... | |
void | onGenerated (const std::string &by, const std::string &version, const std::time_t on) override |
Called on read generated element. More... | |
void | onAlgorithm (const ChecksumAlgoId type) override |
Called on read algorithm element. More... | |
void | onAlgorithmsStart () override |
Called on read algorithms start tag. More... | |
void | onAlgorithmsEnd () override |
Called on read algorithms end tag. More... | |
void | onAlgorithms (const ArrayChecksumAlgoId &types) override |
Called on read algorithms element. More... | |
void | onLocalFilesStart () override |
Called on read localFiles start tag. More... | |
void | onLocalFilesEnd () override |
Called on read localFiles end tag. More... | |
void | onParentDirectoryStart () override |
Called on read parentDirectory start tag. More... | |
void | onParentDirectoryStart (const std::filesystem::path &path) override |
Called on read parentDirectory start tag. More... | |
void | onParentDirectoryEnd () override |
Called on read parentDirectory end tag. More... | |
void | onDirectoryStart (const std::string name) override |
Called on read directory start tag. More... | |
void | onDirectoryStart (const std::filesystem::path &path) override |
Called on read directory start tag. More... | |
void | onDirectoryEnd () override |
Called on read directory end tag. More... | |
void | onFileStart (const std::string name) override |
Called on read file start tag. More... | |
void | onFileStart (const std::filesystem::path &path) override |
Called on read file start tag. More... | |
void | onFileEnd () override |
Called on read file end tag. More... | |
void | onFileInformation (const uintmax_t size=Invalid_File_Size, const time_t date=Invalid_DateTime) override |
Called on read information tag (for file). More... | |
void | onFileChecksum (const ChecksumValue &value) override |
Called on read checksum element (for file). More... | |
void | onFile (const std::filesystem::path &path, const ArrayChecksumValue &checksums, const uintmax_t size=Invalid_File_Size, const time_t date=Invalid_DateTime) override |
Called on read file element. More... | |
void | onFatalError (const std::string &errorMessage, int line, int column) override |
Called on a non-recoverable error. More... | |
Public Member Functions inherited from libxcks::XCKSReaderHandler | |
virtual | ~XCKSReaderHandler ()=default |
Destructor. More... | |
Default handler for reading XCKS files.
Definition at line 208 of file handlers.hpp.
|
virtualdefault |
Destructor.
|
inlineoverridevirtual |
Called on read algorithm element.
[in] | type | The algorithm of the checksum. |
Implements libxcks::XCKSReaderHandler.
Definition at line 236 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read algorithms element.
[in] | types | The algorithms of the checksum. |
Implements libxcks::XCKSReaderHandler.
Definition at line 253 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read algorithms end tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 246 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read algorithms start tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 241 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read checksumsFile element.
[in] | version | The version of the XCKS file. |
Implements libxcks::XCKSReaderHandler.
Definition at line 219 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read directory end tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 299 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read directory start tag.
[in] | path | The full path of the directory. |
Implements libxcks::XCKSReaderHandler.
Definition at line 294 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read directory start tag.
[in] | name | The name of the directory (without its path). |
Implements libxcks::XCKSReaderHandler.
Definition at line 287 of file handlers.hpp.
|
inlineoverridevirtual |
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. |
Implements libxcks::XCKSReaderHandler.
Definition at line 359 of file handlers.hpp.
|
inlineoverridevirtual |
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. |
Implements libxcks::XCKSReaderHandler.
Definition at line 344 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read checksum element (for file).
[in] | value | The type and the value of the checksum. |
Implements libxcks::XCKSReaderHandler.
Definition at line 334 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read file end tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 318 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read information tag (for file).
[in] | size | The size of the file. |
[in] | date | The date and time of the file. |
Implements libxcks::XCKSReaderHandler.
Definition at line 326 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read file start tag.
[in] | path | The full path of the directory. |
Implements libxcks::XCKSReaderHandler.
Definition at line 313 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read file start tag.
[in] | name | The name of the file (without its path). |
Implements libxcks::XCKSReaderHandler.
Definition at line 306 of file handlers.hpp.
|
inlineoverridevirtual |
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. |
Implements libxcks::XCKSReaderHandler.
Definition at line 228 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read localFiles end tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 263 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read localFiles start tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 258 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read parentDirectory end tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 280 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read parentDirectory start tag.
Implements libxcks::XCKSReaderHandler.
Definition at line 268 of file handlers.hpp.
|
inlineoverridevirtual |
Called on read parentDirectory start tag.
[in] | path | The full path of the directory. |
Implements libxcks::XCKSReaderHandler.
Definition at line 275 of file handlers.hpp.