GBTMSTypeDataFiller.h
Classes
- GBTMSTypeDataFiller -- Used to fill the GBT_type_DATA table (e.g. GBT_HOLOGRAPHY_DATA) (full description)
Interface
- Public Members
- GBTMSTypeDataFiller(const String &tableName)
- GBTMSTypeDataFiller(Table &attachTable, const String &type)
- ~GBTMSTypeDataFiller()
- void fill(const Record &row, Double time, Double interval, Int typeId)
- uInt nrow()
- const String &type()
- void flush()
- Private Members
- void updateTableRow()
- void checkRecord(const Record &other)
- GBTMSTypeDataFiller()
- GBTMSTypeDataFiller(const GBTMSTypeDataFiller &other)
- GBTMSTypeDataFiller &operator=(const GBTMSTypeDataFiller &other)
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
Etymology
The PROCESSOR
Synopsis
Example
Motivation
The GBT backend FITS DATA tables have columns which are unhandled by the
regular filling process. These columns are placed
in a subtable name GBT_type)DATA where type is the type of backend such
as HOLOGRAPHY, DCR, SPECTRALPROCESSOR or ACS. These are indexed
using the TYPE_ID value from the PROCESSOR table. They also have TIME
and INTERVAL keys.
To Do
- Some of the mechanisms here are shared with GBTSimpleTable and GBTMSTypeFiller.
They should share code where possible.
Member Description
open an already existing table - type is extracted from the tableName
using everything after the second to last "_".
create a new, empty table attached to the given table using
the indicate typeData.
void fill(const Record &row, Double time, Double interval, Int typeId)
fill this record to this table.
Each field in the record maps to a column in the
the table. There must be no subrecords. The type
of the fields must match that in the existing table.
Fields not already in the table will result in new
columns for that table. A new row is always added.
how many rows in this table
what is the type of this GBT_type_DATA table
flush this table
this checks the record and adds columns as required
Undefined and unavailable
GBTMSTypeDataFiller &operator=(const GBTMSTypeDataFiller &other)