casacore::FitsInput Class Reference
fixed-length sequential blocked FITS input
More...
#include <fitsio.h>
List of all members.
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
|
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 () |
Detailed Description
fixed-length sequential blocked FITS input
Definition at line 156 of file fitsio.h.
Constructor & Destructor Documentation
casacore::FitsInput::FitsInput |
( |
FITSErrorHandler |
errhandler = FITSError::defaultHandler |
) |
|
casacore::FitsInput::~FitsInput |
( |
|
) |
|
Member Function Documentation
int casacore::FitsInput::blockno |
( |
|
) |
const [inline] |
bool casacore::FitsInput::current_hdu_type |
( |
FITS::HDUType & |
|
) |
[private] |
virtual void casacore::FitsInput::errmsg |
( |
FitsErrs |
, |
|
|
const char * |
| |
|
) |
| | [private, virtual] |
set error message that belongs to one of the enumerated types
Implements casacore::FitsIO.
BlockInput& casacore::FitsInput::getfin |
( |
|
) |
[inline] |
int casacore::FitsInput::getnumhdu |
( |
|
) |
const [inline] |
void casacore::FitsInput::init |
( |
|
) |
[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).
Special interface to class HeaderDataUnit.
special way to process header
int casacore::FitsInput::read |
( |
FITS::HDUType |
, |
|
|
char * |
, |
|
|
int |
| |
|
) |
| | [private] |
read N bytes into address
OFF_T casacore::FitsInput::read_all |
( |
FITS::HDUType |
, |
|
|
char * |
| |
|
) |
| | [private] |
read all data into a given address - all responsibility is given to the user
void casacore::FitsInput::read_header_rec |
( |
|
) |
[private] |
char* casacore::FitsInput::read_sp |
( |
|
) |
|
int skip_hdu2(); read special or unrecognizable records
int casacore::FitsInput::recno |
( |
|
) |
const [inline] |
int casacore::FitsInput::skip |
( |
FITS::HDUType |
, |
|
|
OFF_T |
| |
|
) |
| | [private] |
int casacore::FitsInput::skip_hdu |
( |
|
) |
|
Friends And Related Function Documentation
OFF_T HeaderDataUnit::read_all_data |
( |
char * |
|
) |
[friend] |
int HeaderDataUnit::read_data |
( |
char * |
, |
|
|
Int |
| |
|
) |
| | [friend] |
int HeaderDataUnit::skip |
( |
|
) |
[friend] |
int HeaderDataUnit::skip |
( |
uInt |
|
) |
[friend] |
Member Data Documentation
flag used for read control in errors
Definition at line 201 of file fitsio.h.
The documentation for this class was generated from the following file: