EleFits  5.3.1
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VerifyChecksums Class Reference

#include <Action.h>

Detailed Description

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.

See also
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.
 

The documentation for this class was generated from the following file: