GBTMSWeatherFiller.h

Classes

GBTMSWeatherFiller -- GBTMSWeatherFiller fills the MSWeather table for GBT fillers (full description)

class GBTMSWeatherFiller : public GBTDAPFillerBase

Interface

Public Members
GBTMSWeatherFiller()
GBTMSWeatherFiller(MSWeather &msWeather)
~GBTMSWeatherFiller()
const String &device() const
void attach(MSWeather &msWeather)
Int prepare(const String &fileName, const String &manager, const String &sampler, const MVTime &startTime)
void setAntennaId(Int antennaId)
void fill()
void flush()
Private Members
void init(MSWeather &msWeather)
GBTMSWeatherFiller(const GBTMSWeatherFiller &other)
void operator=(const GBTMSWeatherFiller &other)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

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

Synopsis

This class puts the appropriate values for the GBT in an MSWeather table (which has been previously created as part of a MeasurementSet). On each fill() any necessary additions to the MSWeather are made. Because it works with the Weather FITS files in the same way that the generic DAP fillers must work with multiple samplers and managers, this class was derived from GBTDAPFillerBase.

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

GBTMSWeatherFiller()

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

GBTMSWeatherFiller(MSWeather &msWeather)

A filler attached to an MSWeather table

~GBTMSWeatherFiller()

const String &device() const

void attach(MSWeather &msWeather)

attach it to an MSWeather

Int prepare(const String &fileName, const String &manager, const String &sampler, const MVTime &startTime)

prepare for filling the indicated weather file

void setAntennaId(Int antennaId)

set the antennaId - defaults to -1 if not explicitly set

void fill()

fill what has been prepared

void flush()

flush the underlying MS subtable

void init(MSWeather &msWeather)

initialize the above for the first time

GBTMSWeatherFiller(const GBTMSWeatherFiller &other)

undefined and unavailable

void operator=(const GBTMSWeatherFiller &other)