GBTMSProcessorFiller.h
Classes
- GBTMSProcessorFiller -- GBTMSProcessorFiller fills the MSProcessor table for GBT fillers (full description)
Interface
- Public Members
- GBTMSProcessorFiller()
- GBTMSProcessorFiller(MSProcessor &msProcessor)
- ~GBTMSProcessorFiller()
- void attach(MSProcessor &msProcessor)
- void fill(const String &type, Int typeId)
- Int processorId()
- void flush()
- Private Members
- void init(MSProcessor &msProcessor)
- GBTMSProcessorFiller(const GBTMSProcessorFiller &other)
- void operator=(const GBTMSProcessorFiller &other)
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
- MeasurementSets
- GBT FITS files
Etymology
This class puts GBT data (fills) into the MSProcessor table.
Synopsis
This class puts the appropriate values for the GBT in an MSProcessor
table (which has been previously created as part of a MeasurementSet).
On each fill() any necessary additions to the MSProcessor are made.
The processorId 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
The default ctor. No MSProcessor 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 MSProcessor has been created.
A filler attached to an MSProcessor table
attach it to an MSProcessor
void fill(const String &type, Int typeId)
fill - sub_type is always GBT, mode_id is not yet used
this is the row number of the most recently "filled" MSProcessor row
flush the underlying MS subtable
initialize the above for the first time
undefined and unavailable
void operator=(const GBTMSProcessorFiller &other)