casacore
|
#include <fitsio.h>
Public Types | |
enum | FitsErrs { OK , IOERR , MISSKEY , BADBEGIN , EMPTYFILE , NOPRIMARY , BADOPER , BADEOF , MEMERR , BADBITPIX , NOAXISN , NOPCOUNT , NOGCOUNT , BADPCOUNT , BADGCOUNT , NOGROUPS , BADNAXIS , BADPRIMARY , BADSIZE , HDUERR } |
error return code. More... | |
Public Member Functions | |
virtual | ~FitsIO () |
int | err () const |
int | fitsrecsize () const |
record size, in bytes, of a FITS block. More... | |
Bool | isafits () const |
is it a valid fits file (SIMPLE==T). More... | |
Bool | isextend () const |
see if there may be FITS extensions present (EXTENT==T) More... | |
Bool | eof () const |
test if end of file has been reached More... | |
FITS::FitsRecType | rectype () const |
the FITS record type More... | |
FITS::HDUType | hdutype () const |
Header Data Unit type (e.g. More... | |
FITS::ValueType | datatype () const |
OFF_T | datasize () const |
return the datasize of the current HDU. More... | |
Int | itemsize () const |
data characteristics More... | |
OFF_T | currsize () const |
for input, size of remaining data for output, size of data written More... | |
FitsKeyCardTranslator & | getkc () |
get FitsKeyCardTranslator More... | |
fitsfile * | getfptr () const |
get the fitsfile pointer More... | |
OFF_T | getskipsize () const |
get the size of the last skipped HDU More... | |
Protected Member Functions | |
FitsIO (FITSErrorHandler) | |
virtual void | errmsg (FitsErrs, const char *)=0 |
set error message that belongs to one of the enumerated types More... | |
Protected Attributes | |
fitsfile * | m_fptr |
const int | m_recsize |
Bool | m_valid_fits |
Bool | m_extend |
Bool | m_isaprimary |
Bool | m_header_done |
FITS::FitsRecType | m_rec_type |
FITS::HDUType | m_hdu_type |
FITSErrorHandler | m_errfn |
FitsErrs | m_err_status |
FitsKeyCardTranslator | m_kc |
FitsKeywordList | m_kw |
char * | m_curr |
int | m_bytepos |
Int | m_item_size |
FITS::ValueType | m_data_type |
OFF_T | m_data_size |
uInt m_data_size; More... | |
OFF_T | m_curr_size |
for input, size of remaining data for output, size of data written uInt m_curr_size; More... | |
OFF_T | m_skipHDU_size |
for size of the last HDU skipped More... | |
sequential FITS I/O
FitsIO is a base class that handles all the sequential blocked FITS I/O. Special derived classes do the input and output. No interpretation of the data is attempted here, there are special FITS classes that handle syntax and interpretation.
|
virtual |
|
protected |
|
inline |
for input, size of remaining data for output, size of data written
Definition at line 108 of file fitsio.h.
References m_curr_size.
|
inline |
return the datasize of the current HDU.
This excludes the trailing end of the blocked data portion.
Definition at line 103 of file fitsio.h.
References m_data_size.
|
inline |
Definition at line 100 of file fitsio.h.
References m_data_type.
|
inline |
test if end of file has been reached
Definition at line 95 of file fitsio.h.
References casacore::FITS::EndOfFile, and m_rec_type.
Referenced by casacore::FITSTable::eof().
|
inline |
Definition at line 82 of file fitsio.h.
References m_err_status.
|
protectedpure virtual |
set error message that belongs to one of the enumerated types
Implemented in casacore::FitsOutput, and casacore::FitsInput.
|
inline |
|
inline |
|
inline |
|
inline |
get the size of the last skipped HDU
Definition at line 115 of file fitsio.h.
References m_skipHDU_size.
|
inline |
|
inline |
is it a valid fits file (SIMPLE==T).
If not, the only safest operation is to skip the data portion of the current HeaderDataUnit
Definition at line 91 of file fitsio.h.
References m_valid_fits.
|
inline |
|
inline |
|
inline |
|
protected |
for input, size of remaining data for output, size of data written uInt m_curr_size;
Definition at line 144 of file fitsio.h.
Referenced by currsize(), and casacore::FitsOutput::hdu_inprogress().
|
protected |
uInt m_data_size;
Definition at line 140 of file fitsio.h.
Referenced by datasize(), casacore::FitsOutput::hdu_complete(), and casacore::FitsOutput::hdu_inprogress().
|
protected |
Definition at line 138 of file fitsio.h.
Referenced by datatype().
|
protected |
|
protected |
|
protected |
Definition at line 124 of file fitsio.h.
Referenced by isextend().
|
protected |
|
protected |
|
protected |
Definition at line 137 of file fitsio.h.
Referenced by itemsize().
|
protected |
|
protected |
|
protected |
Definition at line 127 of file fitsio.h.
Referenced by eof(), casacore::FitsOutput::hdu_complete(), casacore::FitsOutput::hdu_inprogress(), and rectype().
|
protected |
Definition at line 122 of file fitsio.h.
Referenced by fitsrecsize().
|
protected |
for size of the last HDU skipped
Definition at line 147 of file fitsio.h.
Referenced by getskipsize().
|
protected |