#include <Action.h>
An action which verifies and possibly updates existing checksums.
Just after having accessed an HDU for the first time, its checksums are verified, if any. Before closing the file, checksums of edited HDUs are updated according to the update policy.
UpdateChecksums
Public Member Functions | |
VerifyChecksums (UpdateChecksums mode=UpdateChecksums::Outdated) | |
Constructor. | |
void | accessed (const Hdu &hdu) override |
Verify the HDU checksums at first access, throw if incorrect. More... | |
void | closing (const Hdu &hdu) override |
If the HDU was edited, update its checksums before closing. More... | |
bool | edited (const Hdu &hdu) const |
bool | has_checksums (const Hdu &hdu) const |
Public Member Functions inherited from Action | |
Action ()=default | |
Constructor. | |
virtual void | opened (const Hdu &) |
Method called just after openning the file. More... | |
virtual void | copied (const Hdu &) |
Method called just after copying an HDU. | |
virtual void | created (const Hdu &) |
Method called just after creating an HDU. | |