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