casa
$Rev:20696$
|
Used to fill the GBT_type_DATA table (e.g. GBT_HOLOGRAPHY_DATA) More...
#include <GBTMSTypeDataFiller.h>
Public Member Functions | |
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. | |
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 | |
Private Member Functions | |
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) |
Private Attributes | |
Table * | tab_p |
TableRow * | tabRow_p |
String | type_p |
ScalarColumn< Int > | typeIdCol_p |
ScalarColumn< Double > | timeCol_p |
ScalarColumn< Double > | intervalCol_p |
Used to fill the GBT_type_DATA table (e.g. GBT_HOLOGRAPHY_DATA)
Internal
The PROCESSOR
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.
Definition at line 84 of file GBTMSTypeDataFiller.h.
GBTMSTypeDataFiller::GBTMSTypeDataFiller | ( | const String & | tableName | ) |
open an already existing table - type is extracted from the tableName using everything after the second to last "_".
GBTMSTypeDataFiller::GBTMSTypeDataFiller | ( | Table & | attachTable, |
const String & | type | ||
) |
create a new, empty table attached to the given table using the indicate typeData.
GBTMSTypeDataFiller::GBTMSTypeDataFiller | ( | ) | [private] |
Undefined and unavailable.
GBTMSTypeDataFiller::GBTMSTypeDataFiller | ( | const GBTMSTypeDataFiller & | other | ) | [private] |
void GBTMSTypeDataFiller::checkRecord | ( | const Record & | other | ) | [private] |
this checks the record and adds columns as required
void GBTMSTypeDataFiller::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.
void GBTMSTypeDataFiller::flush | ( | ) | [inline] |
uInt GBTMSTypeDataFiller::nrow | ( | ) | [inline] |
GBTMSTypeDataFiller& GBTMSTypeDataFiller::operator= | ( | const GBTMSTypeDataFiller & | other | ) | [private] |
const String& GBTMSTypeDataFiller::type | ( | ) | [inline] |
what is the type of this GBT_type_DATA table
Definition at line 109 of file GBTMSTypeDataFiller.h.
References type_p.
void GBTMSTypeDataFiller::updateTableRow | ( | ) | [private] |
ScalarColumn<Double> GBTMSTypeDataFiller::intervalCol_p [private] |
Definition at line 120 of file GBTMSTypeDataFiller.h.
Table* GBTMSTypeDataFiller::tab_p [private] |
Definition at line 114 of file GBTMSTypeDataFiller.h.
TableRow* GBTMSTypeDataFiller::tabRow_p [private] |
Definition at line 115 of file GBTMSTypeDataFiller.h.
ScalarColumn<Double> GBTMSTypeDataFiller::timeCol_p [private] |
Definition at line 120 of file GBTMSTypeDataFiller.h.
String GBTMSTypeDataFiller::type_p [private] |
Definition at line 117 of file GBTMSTypeDataFiller.h.
Referenced by type().
ScalarColumn<Int> GBTMSTypeDataFiller::typeIdCol_p [private] |
Definition at line 119 of file GBTMSTypeDataFiller.h.