casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::SDObservationHandler Class Reference

#include <SDObservationHandler.h>

Public Member Functions

 SDObservationHandler ()
 default ctor is not attached to a MS and hence is useless until attached More...
 
 SDObservationHandler (MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
 attach this to a MS, mark the appropriate columns as handled given the indicated row More...
 
 SDObservationHandler (const SDObservationHandler &other)
 copy ctor More...
 
 ~SDObservationHandler ()
 
SDObservationHandleroperator= (const SDObservationHandler &other)
 assignment operator, uses copy semantics More...
 
void attach (MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
 attach to a MS, mark the appropriate columns as handled given the row More...
 
void resetRow (const Record &row)
 reset internals given indicated row, use the same MS More...
 
void fill (const Record &row, const String &telescopeName, const Vector< Double > &timeRange)
 fill - a new row is added only when necessary More...
 
Int observationId ()
 get the current observation ID More...
 
void updateTimeRange (const Vector< Double > &timeRange)
 update the time range More...
 

Private Member Functions

void clearAll ()
 cleanup everything More...
 
void clearRow ()
 cleanup things which depend on the row description being fixed More...
 
void initAll (MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
 initialize everything More...
 
void initRow (Vector< Bool > &handledCols, const Record &row)
 initialize the things which depend on the row More...
 
void makeIndex ()
 initialize the index More...
 

Private Attributes

ColumnsIndexindex_p
 
RecordFieldPtr< StringtelescopeKey_p
 
RecordFieldPtr< StringobserverKey_p
 
RecordFieldPtr< StringprojectKey_p
 
RecordFieldPtr< Stringns_obsidKey_p
 
RecordFieldPtr< DoublereleaseDateKey_p
 
RecordFieldPtr< BoolflagRowKey_p
 
MSObservationmsObs_p
 
MSObservationColumnsmsObsCols_p
 
Int rownr_p
 
ScalarColumn< StringnsObsIdCol_p
 
RORecordFieldPtr< Stringobserver_p
 pointers to fields in record, only used if attached More...
 
RORecordFieldPtr< Stringprojid_p
 
RORecordFieldPtr< Stringobsid_p
 
RORecordFieldPtr< DoublereleaseDate_p
 
RORecordFieldPtr< BoolflagRow_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 89 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 102 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 117 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

RORecordFieldPtr<Bool> casacore::SDObservationHandler::flagRow_p
private

Definition at line 137 of file SDObservationHandler.h.

RecordFieldPtr<Bool> casacore::SDObservationHandler::flagRowKey_p
private

Definition at line 125 of file SDObservationHandler.h.

ColumnsIndex* casacore::SDObservationHandler::index_p
private

Definition at line 122 of file SDObservationHandler.h.

MSObservation* casacore::SDObservationHandler::msObs_p
private

Definition at line 127 of file SDObservationHandler.h.

MSObservationColumns* casacore::SDObservationHandler::msObsCols_p
private

Definition at line 128 of file SDObservationHandler.h.

RecordFieldPtr<String> casacore::SDObservationHandler::ns_obsidKey_p
private

Definition at line 123 of file SDObservationHandler.h.

ScalarColumn<String> casacore::SDObservationHandler::nsObsIdCol_p
private

Definition at line 132 of file SDObservationHandler.h.

RORecordFieldPtr<String> casacore::SDObservationHandler::observer_p
private

pointers to fields in record, only used if attached

Definition at line 135 of file SDObservationHandler.h.

RecordFieldPtr<String> casacore::SDObservationHandler::observerKey_p
private

Definition at line 123 of file SDObservationHandler.h.

RORecordFieldPtr<String> casacore::SDObservationHandler::obsid_p
private

Definition at line 135 of file SDObservationHandler.h.

RecordFieldPtr<String> casacore::SDObservationHandler::projectKey_p
private

Definition at line 123 of file SDObservationHandler.h.

RORecordFieldPtr<String> casacore::SDObservationHandler::projid_p
private

Definition at line 135 of file SDObservationHandler.h.

RORecordFieldPtr<Double> casacore::SDObservationHandler::releaseDate_p
private

Definition at line 136 of file SDObservationHandler.h.

RecordFieldPtr<Double> casacore::SDObservationHandler::releaseDateKey_p
private

Definition at line 124 of file SDObservationHandler.h.

Int casacore::SDObservationHandler::rownr_p
private

Definition at line 130 of file SDObservationHandler.h.

Referenced by observationId().

RecordFieldPtr<String> casacore::SDObservationHandler::telescopeKey_p
private

Definition at line 123 of file SDObservationHandler.h.

RORecordFieldPtr<Array<Double> > casacore::SDObservationHandler::timeRange_p
private

Definition at line 138 of file SDObservationHandler.h.


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