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

◆ 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.parseRecord<int>("KEYWORD");
// Same as:
int value = h.parseRecord<int>("KEYWORD").value;
T value
The value.
Definition: Record.h:211