EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
List of all members

#include <Action.h>

Detailed Description

Base class for strategy actions.

To implement custom actions, just override one or several methods of this class. Early return can be used to skip some HDUs or cases, e.g:

void accessed(const Hdu& hdu) override {
return;
}
...
}
virtual void accessed(const Hdu &)
Method called just after accessing an HDU for the first time.
Definition: Action.h:57
static const HduCategory Metadata
HDU without data.
Definition: HduCategory.h:225
static const HduCategory Primary
Primary image HDU.
Definition: HduCategory.h:224
Base class for ImageHdu and BintableHdu.
Definition: Hdu.h:32
bool matches(HduFilter filter) const
Check whether the HDU matches a given filter.

Public Member Functions

Construction
 Action ()=default
 Constructor.
 
Operations
virtual void opened (const Hdu &)
 Method called just after openning the file. More...
 
virtual void accessed (const Hdu &)
 Method called just after accessing an HDU for the first time. 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.
 
virtual void closing (const Hdu &)
 Method called just before closing the file. More...
 

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