29 #ifndef FITS_FITSTABLE_H
30 #define FITS_FITSTABLE_H
44 class FITSFieldCopier;
46 template<
class T>
class Vector;
115 virtual void next() = 0;
379 const Record &extraKeywords,
457 const Record &extraKeywords,
RecordInterface & row()
use this to set the value of the current row to be written
virtual Bool pastEnd() const
Returns True if we have advanced past the end of data.
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...
std::vector< double > Vector
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.
FITSTable(uInt whichHDU=1, Bool allKeywords=False)
this creates an invalid (isValid() return False) FITSTable Its primary purpose is so that FITSTables ...
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
FITSTable & operator=(const FITSTable &)
Int nrows() const
return basic elements of a table
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.
virtual Bool reopen(const String &fileName)
Attach this FITSTable to a new file name, same HDU# as at open time.
FITSTableWriter & operator=(const FITSTableWriter &)
helper class Note: Note that FitsField does not allocate space for the data; Space is external to Fi...
Bool eof() const
test if end of file has been reached
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.
static FitsOutput * makeWriter(const String &fileName)
Returns a writer, with the first HDU filled in (set to null).
virtual const Record & currentRow() const =0
Return the currentRow.
void write()
Write the current row()
virtual const RecordDesc & description() const =0
Returns the description of the underlying FITS table.
virtual void next()
Advance the row if possible (guaranteed harmless if pastEnd() is True.
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.
FITSTableWriter()
Undefined and inaccessible.
void check_error(const char *extra_info=0)
Checks error status of writer_p and group_p.
FITSGroupWriter & operator=(const FITSGroupWriter &)
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.
FITSGroupWriter()
Undefined and inaccessible.
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
virtual void move(Int torow)
and it should be possible to move to a desired row the rownr() member can be used to verify that a mo...
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.
void write()
Write the current group (row()).
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.
void reopenAtFirstHDU(const String &name)
It is necessary to read the PDA to get the primary keywords.
Block< Int > field_types_p
Bool virtualColumns(const Vector< String > &keyNames)
SDFITSTable needs to make some keywords appear as columns, this requires access to description_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.
virtual const Record & currentRow() const
Return the currentRow.
Abstract base class for Record classes.
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.
Defines nreal time structures used by the VLA table filler.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.