SDObservationHandler.h

Classes

SDObservationHandler -- (full description)

class SDObservationHandler

Interface

Public Members
SDObservationHandler()
SDObservationHandler(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row)
SDObservationHandler(const SDObservationHandler &other)
~SDObservationHandler()
SDObservationHandler &operator=(const SDObservationHandler &other)
void attach(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row)
void resetRow(const Record &row)
void fill(const Record &row, const String &telescopeName, const Vector<Double> &timeRange)
Int observationId()
void updateTimeRange(const Vector<Double> &timeRange)
Private Members
void clearAll()
void clearRow()
void initAll(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row)
void initRow(Vector<Bool> &handledCols, const Record &row)
void makeIndex()

Description

or

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Member Description

SDObservationHandler()

default ctor is not attached to a MS and hence is useless until attached

SDObservationHandler(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row)

attach this to a MS, mark the appropriate columns as handled given the indicated row

SDObservationHandler(const SDObservationHandler &other)

copy ctor

~SDObservationHandler()

SDObservationHandler &operator=(const SDObservationHandler &other)

assignment operator, uses copy semantics

void attach(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row)

attach to a MS, mark the appropriate columns as handled given the row

void resetRow(const Record &row)

reset internals given indicated row, use the same MS

void fill(const Record &row, const String &telescopeName, const Vector<Double> &timeRange)

fill - a new row is added only when necessary

Int observationId()

get the current observation ID

void updateTimeRange(const Vector<Double> &timeRange)

update the time range

void clearAll()

cleanup everything

void clearRow()

cleanup things which depend on the row description being fixed

void initAll(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row)

initialize everything

void initRow(Vector<Bool> &handledCols, const Record &row)

initialize the things which depend on the row

void makeIndex()

initialize the index