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

◆ type()

HduCategory type ( ) const

Get the type of the HDU.

Returns
Either HduCategory::Image or HduCategory::Bintable

As opposed to category(), the return value of this method can be tested for equality, e.g.:

if (ext.type() == HduCategory::Image) {
process_image(ext);
}
static const HduCategory Image
Image HDU.
Definition: HduCategory.h:223