GBTMSAntennaFiller.h

Classes

GBTMSAntennaFiller -- GBTMSAntennaFiller fills the MSAntenna table for GBT fillers (full description)

class GBTMSAntennaFiller

Interface

Public Members
GBTMSAntennaFiller()
GBTMSAntennaFiller(MSAntenna &msAntenna)
~GBTMSAntennaFiller()
void attach(MSAntenna &msAntenna)
void fill(const GBTAntennaFile &antennaFile)
Int antennaId() const
void flush()
Private Members
void init(MSAntenna &msAntenna)
GBTMSAntennaFiller(const GBTMSAntennaFiller &other)
void operator=(const GBTMSAntennaFiller &other)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

This class puts GBT data (fills) into the MSAntenna table.

Synopsis

This class puts the appropriate values for the GBT in an MSAntenna table (which has been previously created as part of a MeasurementSet). On each fill() any necessary additions to the MSAntenna are made. For GBT data at there will usually only be one row in this table. This row is added using information in the Antenna file when available or the NRAO_GBT position from the Measures observatory table. A new row is added when the telescope information in the Antenna file changes.

The antennaId is available to be used by other GBTMS*Fillers as other subtables are filled in turn.

Example

Motivation

Writing a filler is a daunting task. There are various dependencies between the subtables. It helps to encapsulate the knowlege and task of filling a specific subtable to separate classes.

Member Description

GBTMSAntennaFiller()

The default ctor. No MSAntenna table has been attached yet. Calling fill on such a filler will throw an exception. It is present so that this object can be instantiated before an MSAntenna has been created.

GBTMSAntennaFiller(MSAntenna &msAntenna)

A filler attached to an MSAntenna table

~GBTMSAntennaFiller()

void attach(MSAntenna &msAntenna)

attach it to an MSAntenna

void fill(const GBTAntennaFile &antennaFile)

fill using the supplied Antenna file if attached or the "GBT" entry in the Measures observatory table. rows are reused if the name and position match

Int antennaId() const

this is the row number of the most recently "filled" MSAntenna row

void flush()

flush the underlying MS subtable

void init(MSAntenna &msAntenna)

initialize the above for the first time

GBTMSAntennaFiller(const GBTMSAntennaFiller &other)

undefined and unavailable

void operator=(const GBTMSAntennaFiller &other)