casa  5.7.0-16
 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::SDFieldHandler Class Reference

#include <SDFieldHandler.h>

Public Member Functions

 SDFieldHandler ()
 default ctor is not attached to a MS and hence is useless until attached More...
 
 SDFieldHandler (MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
 attach this to a MS - no columns are explicitly handled here More...
 
 SDFieldHandler (const SDFieldHandler &other)
 copy ctor More...
 
 ~SDFieldHandler ()
 
SDFieldHandleroperator= (const SDFieldHandler &other)
 assignment operator, uses copy semantics More...
 
void attach (MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
 attach to a MS, the handledCols and row arguments are ignored here More...
 
void resetRow (const Record &row)
 reset internals given indicated row, use the same MS; just resets the id pointer More...
 
void fill (const Record &row, const String &name, Int directionRefType, const Matrix< Double > &directionPoly, Double time, Int sourceId)
 fill - a new row is added at each call unless the data is from a previous MS fill in which case an existing MAIN_FIELD_ID is used to see if that existing row might be reused More...
 
Int fieldId ()
 get the current field ID More...
 

Private Member Functions

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

Private Attributes

MSFieldmsField_p
 
MSFieldColumnsmsFieldCols_p
 
Int rownr_p
 
RORecordFieldPtr< IntfieldIdField_p
 fields which might be present if the data is originally from a MS More...
 
RORecordFieldPtr< StringcodeField_p
 
RORecordFieldPtr< StringnameField_p
 
RORecordFieldPtr< DoubletimeField_p
 
RORecordFieldPtr< Array< Double > > delayDirField_p
 
RORecordFieldPtr< Array< Double > > delayDirRateField_p
 
RORecordFieldPtr< Array< Double > > phaseDirField_p
 
RORecordFieldPtr< Array< Double > > phaseDirRateField_p
 
RORecordFieldPtr< Array< Double > > referenceDirField_p
 
RORecordFieldPtr< Array< Double > > referenceDirRateField_p
 
RORecordFieldPtr< BoolflagRowField_p
 
ColumnsIndexindex_p
 
RecordFieldPtr< StringnameKey_p
 
RecordFieldPtr< IntsourceIdKey_p
 
RecordFieldPtr< DoubletimeKey_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 SDFieldHandler.h.

Constructor & Destructor Documentation

casacore::SDFieldHandler::SDFieldHandler ( )

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

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

attach this to a MS - no columns are explicitly handled here

casacore::SDFieldHandler::SDFieldHandler ( const SDFieldHandler other)

copy ctor

casacore::SDFieldHandler::~SDFieldHandler ( )
inline

Definition at line 102 of file SDFieldHandler.h.

References clearAll().

Member Function Documentation

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

attach to a MS, the handledCols and row arguments are ignored here

void casacore::SDFieldHandler::clearAll ( )
private

cleanup everything

Referenced by ~SDFieldHandler().

void casacore::SDFieldHandler::clearRow ( )
private
Int casacore::SDFieldHandler::fieldId ( )
inline

get the current field ID

Definition at line 120 of file SDFieldHandler.h.

References rownr_p.

void casacore::SDFieldHandler::fill ( const Record row,
const String name,
Int  directionRefType,
const Matrix< Double > &  directionPoly,
Double  time,
Int  sourceId 
)

fill - a new row is added at each call unless the data is from a previous MS fill in which case an existing MAIN_FIELD_ID is used to see if that existing row might be reused

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

initialize everything

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

initialize things which depend on the row

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

assignment operator, uses copy semantics

void casacore::SDFieldHandler::resetRow ( const Record row)

reset internals given indicated row, use the same MS; just resets the id pointer

Member Data Documentation

RORecordFieldPtr<String> casacore::SDFieldHandler::codeField_p
private

Definition at line 129 of file SDFieldHandler.h.

RORecordFieldPtr<Array<Double> > casacore::SDFieldHandler::delayDirField_p
private

Definition at line 131 of file SDFieldHandler.h.

RORecordFieldPtr<Array<Double> > casacore::SDFieldHandler::delayDirRateField_p
private

Definition at line 131 of file SDFieldHandler.h.

RORecordFieldPtr<Int> casacore::SDFieldHandler::fieldIdField_p
private

fields which might be present if the data is originally from a MS

Definition at line 128 of file SDFieldHandler.h.

RORecordFieldPtr<Bool> casacore::SDFieldHandler::flagRowField_p
private

Definition at line 134 of file SDFieldHandler.h.

ColumnsIndex* casacore::SDFieldHandler::index_p
private

Definition at line 136 of file SDFieldHandler.h.

MSField* casacore::SDFieldHandler::msField_p
private

Definition at line 122 of file SDFieldHandler.h.

MSFieldColumns* casacore::SDFieldHandler::msFieldCols_p
private

Definition at line 123 of file SDFieldHandler.h.

RORecordFieldPtr<String> casacore::SDFieldHandler::nameField_p
private

Definition at line 129 of file SDFieldHandler.h.

RecordFieldPtr<String> casacore::SDFieldHandler::nameKey_p
private

Definition at line 137 of file SDFieldHandler.h.

RORecordFieldPtr<Array<Double> > casacore::SDFieldHandler::phaseDirField_p
private

Definition at line 131 of file SDFieldHandler.h.

RORecordFieldPtr<Array<Double> > casacore::SDFieldHandler::phaseDirRateField_p
private

Definition at line 131 of file SDFieldHandler.h.

RORecordFieldPtr<Array<Double> > casacore::SDFieldHandler::referenceDirField_p
private

Definition at line 131 of file SDFieldHandler.h.

RORecordFieldPtr<Array<Double> > casacore::SDFieldHandler::referenceDirRateField_p
private

Definition at line 131 of file SDFieldHandler.h.

Int casacore::SDFieldHandler::rownr_p
private

Definition at line 125 of file SDFieldHandler.h.

Referenced by fieldId().

RecordFieldPtr<Int> casacore::SDFieldHandler::sourceIdKey_p
private

Definition at line 138 of file SDFieldHandler.h.

RORecordFieldPtr<Double> casacore::SDFieldHandler::timeField_p
private

Definition at line 130 of file SDFieldHandler.h.

RecordFieldPtr<Double> casacore::SDFieldHandler::timeKey_p
private

Definition at line 139 of file SDFieldHandler.h.


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