casacore
Public Member Functions | Private Member Functions | Private Attributes | List of all members

More...

#include <SDSourceHandler.h>

Public Member Functions

 SDSourceHandler ()
 default ctor is not attached to a MS and hence is useless until attached More...
 
 SDSourceHandler (MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
 attach this to a MS, marking fields in row which are explicitly handled here More...
 
 SDSourceHandler (const SDSourceHandler &other)
 copy ctor More...
 
 ~SDSourceHandler ()
 
SDSourceHandleroperator= (const SDSourceHandler &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 &)
 reset internals given indicated row, use the same MS; just resets the id pointer More...
 
void fill (const Record &row, Int spectralWindowId)
 fill - a source is unique in source name and code More...
 
Int sourceId ()
 get the current source ID More...
 

Private Member Functions

void clearAll ()
 cleanup everything More...
 
void clearRow ()
 clean up items related to the row More...
 
void initAll (MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
 initialize everything More...
 
void initRow (Vector< Bool > &handledCols, const Record &row)
 initialize the stuff dependent on the row More...
 

Private Attributes

RecordFieldPtr< StringnameKey_p
 
RecordFieldPtr< StringcodeKey_p
 
ColumnsIndexindex_p
 
MSSourcemsSource_p
 
MSSourceColumnsmsSourceCols_p
 
Int sourceId_p
 the current source ID More...
 
Int nextSourceId_p
 the next source ID to use More...
 
Int restfreq_p
 fields possibly mined from the SDFITS row floating point fields that we can't be certain of their type More...
 
Int vframe_p
 
RORecordFieldPtr< Stringtransiti_p
 String fields. More...
 
RORecordFieldPtr< Stringmolecule_p
 
RORecordFieldPtr< Stringobject_p
 
RORecordFieldPtr< Stringobsmode_p
 
Bool hasTransition_p
 which optional colums exist More...
 
Bool hasRestFreq_p
 
Bool hasSysVel_p
 
Bool hasPosition_p
 
RORecordFieldPtr< IntcalibrationGroupField_p
 fields which might come from a pre-existin MS More...
 
RORecordFieldPtr< IntpulsarIdField_p
 
RORecordFieldPtr< DoubletimeField_p
 
RORecordFieldPtr< DoubleintervalField_p
 
RORecordFieldPtr< Array< Double > > directionField_p
 
RORecordFieldPtr< Array< Double > > positionField_p
 
RORecordFieldPtr< Array< Double > > properMotionField_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 87 of file SDSourceHandler.h.

Constructor & Destructor Documentation

◆ SDSourceHandler() [1/3]

casacore::SDSourceHandler::SDSourceHandler ( )

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

◆ SDSourceHandler() [2/3]

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

attach this to a MS, marking fields in row which are explicitly handled here

◆ SDSourceHandler() [3/3]

casacore::SDSourceHandler::SDSourceHandler ( const SDSourceHandler other)

copy ctor

◆ ~SDSourceHandler()

casacore::SDSourceHandler::~SDSourceHandler ( )
inline

Definition at line 99 of file SDSourceHandler.h.

References clearAll().

Member Function Documentation

◆ attach()

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

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

◆ clearAll()

void casacore::SDSourceHandler::clearAll ( )
private

cleanup everything

Referenced by ~SDSourceHandler().

◆ clearRow()

void casacore::SDSourceHandler::clearRow ( )
private

clean up items related to the row

◆ fill()

void casacore::SDSourceHandler::fill ( const Record row,
Int  spectralWindowId 
)

fill - a source is unique in source name and code

◆ initAll()

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

initialize everything

◆ initRow()

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

initialize the stuff dependent on the row

◆ operator=()

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

assignment operator, uses copy semantics

◆ resetRow()

void casacore::SDSourceHandler::resetRow ( const Record )

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

◆ sourceId()

Int casacore::SDSourceHandler::sourceId ( )
inline

get the current source ID

Definition at line 114 of file SDSourceHandler.h.

References sourceId_p.

Member Data Documentation

◆ calibrationGroupField_p

RORecordFieldPtr<Int> casacore::SDSourceHandler::calibrationGroupField_p
private

fields which might come from a pre-existin MS

Definition at line 137 of file SDSourceHandler.h.

◆ codeKey_p

RecordFieldPtr<String> casacore::SDSourceHandler::codeKey_p
private

Definition at line 116 of file SDSourceHandler.h.

◆ directionField_p

RORecordFieldPtr<Array<Double> > casacore::SDSourceHandler::directionField_p
private

Definition at line 139 of file SDSourceHandler.h.

◆ hasPosition_p

Bool casacore::SDSourceHandler::hasPosition_p
private

Definition at line 134 of file SDSourceHandler.h.

◆ hasRestFreq_p

Bool casacore::SDSourceHandler::hasRestFreq_p
private

Definition at line 134 of file SDSourceHandler.h.

◆ hasSysVel_p

Bool casacore::SDSourceHandler::hasSysVel_p
private

Definition at line 134 of file SDSourceHandler.h.

◆ hasTransition_p

Bool casacore::SDSourceHandler::hasTransition_p
private

which optional colums exist

Definition at line 134 of file SDSourceHandler.h.

◆ index_p

ColumnsIndex* casacore::SDSourceHandler::index_p
private

Definition at line 117 of file SDSourceHandler.h.

◆ intervalField_p

RORecordFieldPtr<Double> casacore::SDSourceHandler::intervalField_p
private

Definition at line 138 of file SDSourceHandler.h.

◆ molecule_p

RORecordFieldPtr<String> casacore::SDSourceHandler::molecule_p
private

Definition at line 131 of file SDSourceHandler.h.

◆ msSource_p

MSSource* casacore::SDSourceHandler::msSource_p
private

Definition at line 118 of file SDSourceHandler.h.

◆ msSourceCols_p

MSSourceColumns* casacore::SDSourceHandler::msSourceCols_p
private

Definition at line 119 of file SDSourceHandler.h.

◆ nameKey_p

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

Definition at line 116 of file SDSourceHandler.h.

◆ nextSourceId_p

Int casacore::SDSourceHandler::nextSourceId_p
private

the next source ID to use

Definition at line 125 of file SDSourceHandler.h.

◆ object_p

RORecordFieldPtr<String> casacore::SDSourceHandler::object_p
private

Definition at line 131 of file SDSourceHandler.h.

◆ obsmode_p

RORecordFieldPtr<String> casacore::SDSourceHandler::obsmode_p
private

Definition at line 131 of file SDSourceHandler.h.

◆ positionField_p

RORecordFieldPtr<Array<Double> > casacore::SDSourceHandler::positionField_p
private

Definition at line 139 of file SDSourceHandler.h.

◆ properMotionField_p

RORecordFieldPtr<Array<Double> > casacore::SDSourceHandler::properMotionField_p
private

Definition at line 139 of file SDSourceHandler.h.

◆ pulsarIdField_p

RORecordFieldPtr<Int> casacore::SDSourceHandler::pulsarIdField_p
private

Definition at line 137 of file SDSourceHandler.h.

◆ restfreq_p

Int casacore::SDSourceHandler::restfreq_p
private

fields possibly mined from the SDFITS row floating point fields that we can't be certain of their type

Definition at line 129 of file SDSourceHandler.h.

◆ sourceId_p

Int casacore::SDSourceHandler::sourceId_p
private

the current source ID

Definition at line 122 of file SDSourceHandler.h.

Referenced by sourceId().

◆ timeField_p

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

Definition at line 138 of file SDSourceHandler.h.

◆ transiti_p

RORecordFieldPtr<String> casacore::SDSourceHandler::transiti_p
private

String fields.

Definition at line 131 of file SDSourceHandler.h.

◆ vframe_p

Int casacore::SDSourceHandler::vframe_p
private

Definition at line 129 of file SDSourceHandler.h.


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