casacore::SDObservationHandler Class Reference

#include <SDObservationHandler.h>

List of all members.

Public Member Functions

 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

Private Member Functions

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

Private Attributes

ColumnsIndex * index_p
RecordFieldPtr< String > telescopeKey_p
RecordFieldPtr< String > observerKey_p
RecordFieldPtr< String > projectKey_p
RecordFieldPtr< String > ns_obsidKey_p
RecordFieldPtr< Double > releaseDateKey_p
RecordFieldPtr< Bool > flagRowKey_p
MSObservation * msObs_p
MSObservationColumns * msObsCols_p
Int rownr_p
ScalarColumn< String > nsObsIdCol_p
RORecordFieldPtr< String > observer_p
 pointers to fields in record, only used if attached
RORecordFieldPtr< String > projid_p
RORecordFieldPtr< String > obsid_p
RORecordFieldPtr< Double > releaseDate_p
RORecordFieldPtr< Bool > flagRow_p
RORecordFieldPtr< Array< Double > > timeRange_p

Detailed Description

Intended use:

Internal or

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Definition at line 90 of file SDObservationHandler.h.


Constructor & Destructor Documentation

casacore::SDObservationHandler::SDObservationHandler (  ) 

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

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

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

casacore::SDObservationHandler::SDObservationHandler ( const SDObservationHandler &  other  ) 

copy ctor

casacore::SDObservationHandler::~SDObservationHandler (  )  [inline]

Definition at line 103 of file SDObservationHandler.h.

References clearAll().


Member Function Documentation

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

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

void casacore::SDObservationHandler::clearAll (  )  [private]

cleanup everything

Referenced by ~SDObservationHandler().

void casacore::SDObservationHandler::clearRow (  )  [private]

cleanup things which depend on the row description being fixed

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

fill - a new row is added only when necessary

void casacore::SDObservationHandler::initAll ( MeasurementSet &  ms,
Vector< Bool > &  handledCols,
const Record &  row 
) [private]

initialize everything

void casacore::SDObservationHandler::initRow ( Vector< Bool > &  handledCols,
const Record &  row 
) [private]

initialize the things which depend on the row

void casacore::SDObservationHandler::makeIndex (  )  [private]

initialize the index

Int casacore::SDObservationHandler::observationId (  )  [inline]

get the current observation ID

Definition at line 118 of file SDObservationHandler.h.

References rownr_p.

SDObservationHandler& casacore::SDObservationHandler::operator= ( const SDObservationHandler &  other  ) 

assignment operator, uses copy semantics

void casacore::SDObservationHandler::resetRow ( const Record &  row  ) 

reset internals given indicated row, use the same MS

void casacore::SDObservationHandler::updateTimeRange ( const Vector< Double > &  timeRange  ) 

update the time range


Member Data Documentation

Definition at line 138 of file SDObservationHandler.h.

Definition at line 126 of file SDObservationHandler.h.

Definition at line 123 of file SDObservationHandler.h.

Definition at line 128 of file SDObservationHandler.h.

Definition at line 129 of file SDObservationHandler.h.

Definition at line 124 of file SDObservationHandler.h.

Definition at line 133 of file SDObservationHandler.h.

pointers to fields in record, only used if attached

Definition at line 136 of file SDObservationHandler.h.

Definition at line 124 of file SDObservationHandler.h.

Definition at line 136 of file SDObservationHandler.h.

Definition at line 124 of file SDObservationHandler.h.

Definition at line 136 of file SDObservationHandler.h.

Definition at line 137 of file SDObservationHandler.h.

Definition at line 125 of file SDObservationHandler.h.

Definition at line 131 of file SDObservationHandler.h.

Referenced by observationId().

Definition at line 124 of file SDObservationHandler.h.

Definition at line 139 of file SDObservationHandler.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1