EleFits  4.0.1
A modern C++ API on top of CFitsIO

◆ currentType()

Fits::HduCategory Euclid::Cfitsio::HduAccess::currentType ( fitsfile *  fptr)

Get the type of the current HDU (either Image or Bintable).

Returns
Either HduCategory::Image or HduCategory::Bintable.

The output of this function can be tested for equality, e.g.:

if (currentType(fptr) == HduCategory::Image) {
... // An image HDU
}
Euclid::Cfitsio::HduAccess::currentType
Fits::HduCategory currentType(fitsfile *fptr)
Get the type of the current HDU (either Image or Bintable).