31 #include <casacore/casa/aips.h>
32 # include <casacore/fits/FITS/fits.h>
33 # include <casacore/fits/FITS/blockio.h>
34 # include <casacore/fits/FITS/hdu.h>
36 # include <casacore/casa/Arrays/Vector.h>
int blockno() const
number of physical blocks read/written
int recno() const
number of logical records read/written
fixed-length blocked sequential output base class
static void defaultHandler(const char *errMessage, ErrorLevel severity)
The default error handler.
FitsRecType
Types of FITS Records.
ValueType
FITS I/O Error message types.
HDUType
Types of FITS Header-Data Units.
FitsDevice
Supported FITS Physical Devices.
FitsDiskOutput(const char *, int, int=1, FITSErrorHandler errhandler=FITSError::defaultHandler)
Bool eof() const
test if end of file has been reached
Int itemsize() const
data characteristics
Bool isafits() const
is it a valid fits file (SIMPLE==T).
FITS::FitsRecType m_rec_type
OFF_T currsize() const
for input, size of remaining data for output, size of data written
FITS::FitsRecType rectype() const
the FITS record type
FitsKeyCardTranslator & getkc()
get FitsKeyCardTranslator
Bool isextend() const
see if there may be FITS extensions present (EXTENT==T)
int fitsrecsize() const
record size, in bytes, of a FITS block.
virtual void errmsg(FitsErrs, const char *)=0
set error message that belongs to one of the enumerated types
OFF_T m_skipHDU_size
for size of the last HDU skipped
FITS::ValueType m_data_type
OFF_T m_curr_size
for input, size of remaining data for output, size of data written uInt m_curr_size;
OFF_T getskipsize() const
get the size of the last skipped HDU
FitsKeyCardTranslator m_kc
FITS::HDUType hdutype() const
Header Data Unit type (e.g.
FitsErrs
error return code.
fitsfile * getfptr() const
get the fitsfile pointer
OFF_T m_data_size
uInt m_data_size;
OFF_T datasize() const
return the datasize of the current HDU.
FITS::ValueType datatype() const
translator between Keyword lists and fixed FITS cars
linked list of FITS keywords
fixed-length sequential blocked FITS output
int hdu_complete()
check if the current hdu is done.
int write(FITS::HDUType, char *, Int, char)
write N bytes from address
int write_sp(char *rec)
write a special record.
void setfptr(fitsfile *ffp)
Bool required_keys_only()
Bool m_required_keys_only
FitsOutput(FITSErrorHandler errhandler=FITSError::defaultHandler)
void set_data_info(FitsKeywordList &kwl, FITS::HDUType t, FITS::ValueType dt, OFF_T ds, Int is)
used by PrimaryArray, BinaryTabelExtention etc to work with the constructor without keyword list.
FitsOutput(const char *, const FITS::FitsDevice &, int=10, FITSErrorHandler errhandler=FITSError::defaultHandler)
int write_all(FITS::HDUType, char *, char)
write all data from address
BlockOutput & make_output(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
int write_hdr(FitsKeywordList &, FITS::HDUType, FITS::ValueType, OFF_T, Int)
Special interface to class HeaderDataUnit.
FITS output to standard output
FitsStdOutput(int, FITSErrorHandler errhandler=FITSError::defaultHandler)
FITS output to 9-track tape
FitsTape9Output(const char *, int, int=10, FITSErrorHandler errhandler=FITSError::defaultHandler)
void(* FITSErrorHandler)(const char *errMessage, FITSError::ErrorLevel severity)
Define a typedef for the handler function signature for convenience.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.