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

◆ access() [1/2]

const T & access ( const std::string name,
long  version = 0 
)

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

Template Parameters
TThe type of HDU or header or data unit handler

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
find()