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

◆ operator T()

template<typename T >
Euclid::Fits::Record< 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;
Euclid::Fits::Record::value
T value
The value.
Definition: Record.h:226