EleFits  5.0.0
A modern C++ API on top of CFITSIO

◆ type()

HduCategory type ( ) const

Get the type of the HDU.

Returns
Either HduCategory::Image or HduCategory::Bintable

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

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