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

◆ access() [2/2]

template<class T = Hdu>
const T& Euclid::Fits::MefFile::access ( const std::string name,
long  version = 0 
)

Access the only HDU with given name, type and version.

Throws an exception if several HDUs with given name exists.

Warning
In order to ensure uniqueness of the name, all HDUs are visited, which may have a non-negligible I/O cost.
See also
accessFirst