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

◆ operator T()

operator T ( ) const

Slice the record as its value.

A Record is often read for using its value only; This shortcut is merely a const version of the value member.

SifFile f("filename.fits");
const auto& h = f.header();
// Immediately cast to int:
int value = h.parse<int>("KEYWORD");
// Same as:
int value = h.parse<int>("KEYWORD").value;
Single image FITS file handler.
Definition: SifFile.h:23
T value
The value.
Definition: Record.h:232