casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
GBTMSTypeDataFiller Class Reference

Used to fill the GBT_type_DATA table (e.g. GBT_HOLOGRAPHY_DATA) More...

#include <GBTMSTypeDataFiller.h>

List of all members.

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 Stringtype ()
 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)
GBTMSTypeDataFilleroperator= (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

Detailed Description

Used to fill the GBT_type_DATA table (e.g. GBT_HOLOGRAPHY_DATA)

Intended use:

Internal

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

Definition at line 84 of file GBTMSTypeDataFiller.h.


Constructor & Destructor Documentation

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.

Undefined and unavailable.


Member Function Documentation

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]

flush this table

Definition at line 112 of file GBTMSTypeDataFiller.h.

References tab_p.

uInt GBTMSTypeDataFiller::nrow ( ) [inline]

how many rows in this table

Definition at line 106 of file GBTMSTypeDataFiller.h.

References tab_p.

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.


Member Data Documentation

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.

Referenced by flush(), and nrow().

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.

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.


The documentation for this class was generated from the following file: