GBTMSTypeDataFiller.h

Classes

GBTMSTypeDataFiller -- Used to fill the GBT_type_DATA table (e.g. GBT_HOLOGRAPHY_DATA) (full description)

class GBTMSTypeDataFiller

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)

Description

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

Member Description

GBTMSTypeDataFiller(const String &tableName)

open an already existing table - type is extracted from the tableName using everything after the second to last "_".

GBTMSTypeDataFiller(Table &attachTable, const String &type)

create a new, empty table attached to the given table using the indicate typeData.

~GBTMSTypeDataFiller()

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.

uInt nrow()

how many rows in this table

const String &type()

what is the type of this GBT_type_DATA table

void flush()

flush this table

void updateTableRow()

void checkRecord(const Record &other)

this checks the record and adds columns as required

GBTMSTypeDataFiller()

Undefined and unavailable

GBTMSTypeDataFiller(const GBTMSTypeDataFiller &other)

GBTMSTypeDataFiller &operator=(const GBTMSTypeDataFiller &other)