|
casacore
|
fixed-length sequential blocked FITS input More...
#include <fitsio.h>
Public Member Functions | |
| FitsInput (const char *, const FITS::FitsDevice &, int=10, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
| FitsInput (FITSErrorHandler errhandler=FITSError::defaultHandler) | |
| ~FitsInput () | |
| int | skip_hdu () |
| void | skip_all (FITS::HDUType) |
| skip all remaining data | |
| char * | read_sp () |
| int skip_hdu2(); read special or unrecognizable records | |
| Vector< String > | kwlist_str (Bool length80=False) |
| get hdu header image cards as strings. | |
| int | blockno () const |
| number of physical blocks read/written | |
| int | recno () const |
| number of logical records read/written | |
| BlockInput & | getfin () |
| int | getnumhdu () const |
| the number of hdu in this fits file | |
| Public Member Functions inherited from casacore::FitsIO | |
| virtual | ~FitsIO () |
| int | err () const |
| int | fitsrecsize () const |
| record size, in bytes, of a FITS block. | |
| Bool | isafits () const |
| is it a valid fits file (SIMPLE==T). | |
| Bool | isextend () const |
| see if there may be FITS extensions present (EXTENT==T) | |
| Bool | eof () const |
| test if end of file has been reached | |
| FITS::FitsRecType | rectype () const |
| the FITS record type | |
| FITS::HDUType | hdutype () const |
| Header Data Unit type (e.g. | |
| FITS::ValueType | datatype () const |
| OFF_T | datasize () const |
| return the datasize of the current HDU. | |
| Int | itemsize () const |
| data characteristics | |
| OFF_T | currsize () const |
| for input, size of remaining data for output, size of data written | |
| FitsKeyCardTranslator & | getkc () |
| get FitsKeyCardTranslator | |
| fitsfile * | getfptr () const |
| get the fitsfile pointer | |
| OFF_T | getskipsize () const |
| get the size of the last skipped HDU | |
Private Member Functions | |
| BlockInput & | make_input (const char *, const FITS::FitsDevice &, int, FITSErrorHandler errhandler=FITSError::defaultHandler) |
| virtual void | errmsg (FitsErrs, const char *) |
| set error message that belongs to one of the enumerated types | |
| void | init () |
| void | read_header_rec () |
| bool | current_hdu_type (FITS::HDUType &) |
| bool | get_data_type (FITS::ValueType &) |
| int | process_header (FITS::HDUType, FitsKeywordList &) |
| Special interface to class HeaderDataUnit. | |
| OFF_T | read_all (FITS::HDUType, char *) |
| read all data into a given address - all responsibility is given to the user | |
| int | read (FITS::HDUType, char *, int) |
| read N bytes into address | |
| int | skip (FITS::HDUType, OFF_T) |
| skip N bytes | |
Private Attributes | |
| BlockInput & | m_fin |
| Bool | m_got_rec |
| flag used for read control in errors | |
| int | m_thdunum |
| total number of hdu in this fits file | |
Friends | |
| int | HeaderDataUnit::get_hdr (FITS::HDUType, FitsKeywordList &) |
| OFF_T | HeaderDataUnit::read_all_data (char *) |
| int | HeaderDataUnit::read_data (char *, Int) |
| int | HeaderDataUnit::skip (uInt) |
| int | HeaderDataUnit::skip () |
Additional Inherited Members | |
| Public Types inherited from casacore::FitsIO | |
| 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... | |
| Protected Member Functions inherited from casacore::FitsIO | |
| FitsIO (FITSErrorHandler) | |
| Protected Attributes inherited from casacore::FitsIO | |
| 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; | |
| OFF_T | m_curr_size |
| for input, size of remaining data for output, size of data written uInt m_curr_size; | |
| OFF_T | m_skipHDU_size |
| for size of the last HDU skipped | |
| casacore::FitsInput::FitsInput | ( | const char * | , |
| const FITS::FitsDevice & | , | ||
| int | = 10, | ||
| FITSErrorHandler | errhandler = FITSError::defaultHandler ) |
References casacore::FITSError::defaultHandler().
| casacore::FitsInput::FitsInput | ( | FITSErrorHandler | errhandler = FITSError::defaultHandler | ) |
References casacore::FITSError::defaultHandler().
| casacore::FitsInput::~FitsInput | ( | ) |
|
inline |
|
private |
|
privatevirtual |
set error message that belongs to one of the enumerated types
Implements casacore::FitsIO.
|
private |
|
inline |
|
inline |
|
private |
get hdu header image cards as strings.
By default the strings will be of variable length. You can optionally ask for them to be length 80 (padded with spaces).
References casacore::False.
|
private |
References casacore::FITSError::defaultHandler().
|
private |
Special interface to class HeaderDataUnit.
special way to process header
|
private |
read N bytes into address
|
private |
read all data into a given address - all responsibility is given to the user
|
private |
| char * casacore::FitsInput::read_sp | ( | ) |
int skip_hdu2(); read special or unrecognizable records
|
inline |
|
private |
skip N bytes
| void casacore::FitsInput::skip_all | ( | FITS::HDUType | ) |
skip all remaining data
| int casacore::FitsInput::skip_hdu | ( | ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
total number of hdu in this fits file
Definition at line 201 of file fitsio.h.
Referenced by getnumhdu().