GBTMSProcessorFiller.h

Classes

GBTMSProcessorFiller -- GBTMSProcessorFiller fills the MSProcessor table for GBT fillers (full description)

class GBTMSProcessorFiller

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)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

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

GBTMSProcessorFiller()

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.

GBTMSProcessorFiller(MSProcessor &msProcessor)

A filler attached to an MSProcessor table

~GBTMSProcessorFiller()

void attach(MSProcessor &msProcessor)

attach it to an MSProcessor

void fill(const String &type, Int typeId)

fill - sub_type is always GBT, mode_id is not yet used

Int processorId()

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

void flush()

flush the underlying MS subtable

void init(MSProcessor &msProcessor)

initialize the above for the first time

GBTMSProcessorFiller(const GBTMSProcessorFiller &other)

undefined and unavailable

void operator=(const GBTMSProcessorFiller &other)