Class lsst::afw::fits::HduMoveGuard¶
-
class
HduMoveGuard¶ RAII scoped guard for moving the HDU in a Fits object.
This class attempts to ensure that the HDU state of a
Fitsobject is restored when the guard class goes out of scope, even in the presence of exceptions. (In practice, resetting the HDU can only fail if theFitsobject has become sufficiently corrupted that it’s no longer usable at all).