GBTMSPolarizationFiller.h

Classes

GBTMSPolarizationFiller -- GBTMSPolarizationFiller fills the MSPolarization table for GBT fillers (full description)

class GBTMSPolarizationFiller

Interface

Public Members
GBTMSPolarizationFiller()
GBTMSPolarizationFiller(MSPolarization &msPolarization)
~GBTMSPolarizationFiller()
void attach(MSPolarization &msPolarization)
void fill(Int ncorr, const Vector<Int> &corrType, const Matrix<Int> &corrProduct)
Int polarizationId() const
void flush()
Private Members
void init(MSPolarization &msPolarization)
GBTMSPolarizationFiller(const GBTMSPolarizationFiller &other)
void operator=(const GBTMSPolarizationFiller &other)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

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

Synopsis

This class puts the appropriate values for the GBT in an MSPolarization table (which has been previously created as part of a MeasurementSet). On each fill() any necessary additions to the MSPolarization are made. Currently this depends only on the shape of the data being filled as there is not yet any polarization information available from the GBT data associated paramters FITS files. Existing rows are re-used whenever possible.

The polarizationId is available to be used by the 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

GBTMSPolarizationFiller()

The default ctor. No MSPolarization 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 MSPolarization has been created.

GBTMSPolarizationFiller(MSPolarization &msPolarization)

A filler attached to an MSPolarization table

~GBTMSPolarizationFiller()

void attach(MSPolarization &msPolarization)

attach it to an MSPolarization

void fill(Int ncorr, const Vector<Int> &corrType, const Matrix<Int> &corrProduct)

fill - GBT MSPolarization table has one row.

Int polarizationId() const

this is the row number of the most recently "filled" MSPolarization row it returns -1 if nothing has been filled yet

void flush()

flush the underlying MS subtable

void init(MSPolarization &msPolarization)

initialize the above for the first time

GBTMSPolarizationFiller(const GBTMSPolarizationFiller &other)

undefined and unavailable

void operator=(const GBTMSPolarizationFiller &other)