29 #ifndef FITS_FITSTABLE_H 30 #define FITS_FITSTABLE_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/casa/Containers/Record.h> 35 #include <casacore/tables/Tables/TableRecord.h> 36 #include <casacore/casa/Containers/Block.h> 37 #include <casacore/fits/FITS/hdu.h> 38 #include <casacore/fits/FITS/fitsio.h> 39 #include <casacore/casa/iosfwd.h> 44 class FITSFieldCopier;
46 template<
class T>
class Vector;
115 virtual void next() = 0;
217 virtual Bool eof()
const {
return io_p->eof();}
238 virtual uInt nrow()
const {
return raw_table_p->nrows();}
248 virtual void move(
Int torow);
349 enum {DefaultMaxStringSize = 16};
379 const Record &extraKeywords,
457 const Record &extraKeywords,
484 void check_error(
const char *extra_info = 0);
RecordInterface & row()
use this to set the value of the current row to be written
BinaryTableExtension * raw_table_p
A 1-D Specialization of the Array class.
VADescFitsField * va_p
I had trouble making a Block<VADescFitsField>
static Record subStringShapeFromHDU(BinaryTableExtension &hdu)
Help function for retrieving any shape information from String columns using the SubString convention...
virtual const Record & units() const =0
Returns any TUNITnnn associated with a column (the field names are the column names, each field value is the TUNITnnn value for that field).
static Record unitsFromHDU(BinaryTableExtension &hdu)
Helper function for retrieving the TUNITnnn from a native-FITS hdu.
virtual const Record & nulls() const =0
Returns any TNULLnnn associated with a column (the field names are the column names, each field value is the TNULLnnn value for that field).
static Record displayFormatsFromHDU(BinaryTableExtension &hdu)
Helper function for retrieving the TDISPnnn from a native-FITS hdu.
virtual const String & name() const
return the name
static Record nullsFromHDU(BinaryTableExtension &hdu)
Helper function for retrieving the TNULLnnn from a native-FITS hdu.
PtrBlock< FITSFieldCopier * > copiers_p
Block< Int > vatypes_p
these are used by VADESC columns
Simplified interface to create and write to a FITS Binary Table.
virtual Int rownr() const
these tables should also know where they are
Block< void * > row_fields_p
virtual const TableRecord & keywords() const
Returns keywords which are associated with the underlying FITS files.
PrimaryGroup< Float > * group_p
TableRecord primaryKeys_p
static TableDesc tableDesc(const FITSTabular &fitstabular)
Get a TableDesc appropriate to hold a FITSTabular the keywords, description, units, displayFormats, and nulls are all used.
virtual Bool isValid() const
isValid() returns False if this object isn't a valid Tabular data structure.
PtrHolder< T > & operator=(const PtrHolder< T > &other)
helper class Note: Note that FitsField does not allocate space for the data; Space is external to Fi...
RecordInterface & row()
Set the values for the current group.
virtual Bool hasChanged() const
Has the description changed since construction, default is False.
virtual const TableRecord & keywords() const =0
Returns keywords which are associated with the underlying FITS files.
virtual const Record & currentRow() const =0
Return the currentRow.
virtual const RecordDesc & description() const =0
Returns the description of the underlying FITS table.
Simplified interface to create and write to FITS random groups.
virtual const Record & displayFormats() const
Returns any TDISPnnn associated with a column (the field names are the column names, each field value is the TDISPnnn value for that field).
Description of the fields in a record object.
virtual const RecordDesc & description() const
Returns the description of the underlying FITS table.
virtual const TableRecord & primaryKeywords() const
the keywords from the Primary HDU
uInt nfields_p
One per field in row_p, of the right type.
virtual const Record & displayFormats() const =0
Returns any TDISPnnn associated with a column (the field names are the column names, each field value is the TDISPnnn value for that field).
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
static TableRecord keywordsFromHDU(HeaderDataUnit &hdu, Bool allKeywords=False)
Helper function for retrieving keywords from a native-FITS hdu.
FitsOutput * writer()
Don't delete this out from under us!
FitsOutput * writer()
Don't delete this out from under us!
Attach a FITSTabular to a binary or ASCII table.
A drop-in replacement for Block<T*>.
BinaryTableExtension * bintable_p
A hierarchical collection of named fields of various types.
virtual Bool isValid() const =0
isValid() returns False if this object isn't a valid Tabular data structure.
virtual const Record & units() const
Returns any TUNITnnn associated with a column (the field names are the column names, each field value is the TUNITnnn value for that field).
virtual const String & name() const =0
return the name
fixed-length sequential blocked FITS output
static RecordDesc descriptionFromHDU(BinaryTableExtension &hdu)
Helper function for retrieving a description from a native-FITS hdu.
virtual Bool pastEnd() const =0
Returns True if we have advanced past the end of data.
virtual const Record & nulls() const
Returns any TNULLnnn associated with a column (the field names are the column names, each field value is the TNULLnnn value for that field).
virtual void resetChangedFlag()
reset the changed flag, default do nothing
String: the storage and methods of handling collections of characters.
Block< Int > field_types_p
virtual uInt nrow() const
single FITS tables know how many rows there are unlike general FITSTabulars, which may not know (e...
Define the structure of a Casacore table.
virtual Bool eof() const
Has the end of file been reached yet.
virtual void next()=0
Advance the row if possible (guaranteed harmless if pastEnd() is True.
Abstract base class for Record classes.
this file contains all the compiler specific defines
virtual Bool reopen(const String &)
Reopen the table, default behavior is to do nothing, return False.
Simplified interface to FITS tables with Casacore Look and Feel.