EleFits  5.0.0
A modern C++ API on top of CFITSIO
Public Types | Static Public Member Functions | Public Member Functions | Public Attributes | List of all members
ChecksumError Struct Reference

#include <FitsError.h>

Detailed Description

Exception thrown if a checksum is missing or incorrect.

Public Types

enum  Status {
  Incorrect = -1 ,
  Missing = 0 ,
  Correct = 1
}
 Status of a checksum stored in a header unit. More...
 

Static Public Member Functions

static void mayThrow (Status hduStatus, Status dataStatus)
 Throw if at least one checksum is not correct (missing or incorrect).
 

Public Member Functions

 ChecksumError (Status hduStatus, Status dataStatus)
 Constructor.
 
bool missing () const
 Check whether at least one checksum is missing.
 
bool incorrect () const
 Check chether at least one checksum is incorrect.
 
- Public Member Functions inherited from FitsError
virtual ~FitsError ()=default
 Destructor.
 
 FitsError (const std::string &message)
 Constructor. More...
 
const char * what () const noexcept override
 Output message.
 
void append (const std::string &line, std::size_t indent=0)
 Append some line to the message. More...
 
- Public Member Functions inherited from exception
what (T... args)
 
~exception (T... args)
 
operator= (T... args)
 
exception (T... args)
 

Public Attributes

Status hdu
 The checksum of the whole HDU.
 
Status data
 The checksum of the data unit.
 

The documentation for this struct was generated from the following file: