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

GBTMSAntennaFiller fills the MSAntenna table for GBT fillers. More...

#include <GBTMSAntennaFiller.h>

List of all members.

Public Member Functions

 GBTMSAntennaFiller ()
 The default ctor.
 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.
Int antennaId () const
 this is the row number of the most recently "filled" MSAntenna row
void flush ()
 flush the underlying MS subtable

Private Member Functions

void init (MSAntenna &msAntenna)
 initialize the above for the first time
 GBTMSAntennaFiller (const GBTMSAntennaFiller &other)
 undefined and unavailable
void operator= (const GBTMSAntennaFiller &other)

Private Attributes

MSAntenna * msAntenna_p
MSAntennaColumns * msAntCols_p
MPosition position_p
String name_p
Int antId_p

Detailed Description

GBTMSAntennaFiller fills the MSAntenna table for GBT fillers.

Intended use:

Internal

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.

Definition at line 92 of file GBTMSAntennaFiller.h.


Constructor & Destructor Documentation

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::GBTMSAntennaFiller ( MSAntenna &  msAntenna)

A filler attached to an MSAntenna table.

undefined and unavailable


Member Function Documentation

Int GBTMSAntennaFiller::antennaId ( ) const [inline]

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

Definition at line 116 of file GBTMSAntennaFiller.h.

References antId_p.

void GBTMSAntennaFiller::attach ( MSAntenna &  msAntenna)

attach it to an MSAntenna

void GBTMSAntennaFiller::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

void GBTMSAntennaFiller::flush ( ) [inline]

flush the underlying MS subtable

Definition at line 119 of file GBTMSAntennaFiller.h.

References msAntenna_p.

void GBTMSAntennaFiller::init ( MSAntenna &  msAntenna) [private]

initialize the above for the first time

void GBTMSAntennaFiller::operator= ( const GBTMSAntennaFiller other) [private]

Member Data Documentation

Definition at line 128 of file GBTMSAntennaFiller.h.

Referenced by antennaId().

MSAntennaColumns* GBTMSAntennaFiller::msAntCols_p [private]

Definition at line 123 of file GBTMSAntennaFiller.h.

MSAntenna* GBTMSAntennaFiller::msAntenna_p [private]

Definition at line 122 of file GBTMSAntennaFiller.h.

Referenced by flush().

Definition at line 126 of file GBTMSAntennaFiller.h.

MPosition GBTMSAntennaFiller::position_p [private]

Definition at line 125 of file GBTMSAntennaFiller.h.


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