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::SDSourceHandler Class Reference

#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 88 of file SDSourceHandler.h.

Constructor & Destructor Documentation

casacore::SDSourceHandler::SDSourceHandler ( )

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

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

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

copy ctor

casacore::SDSourceHandler::~SDSourceHandler ( )
inline

Definition at line 100 of file SDSourceHandler.h.

References clearAll().

Member Function Documentation

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

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

void casacore::SDSourceHandler::clearAll ( )
private

cleanup everything

Referenced by ~SDSourceHandler().

void casacore::SDSourceHandler::clearRow ( )
private

clean up items related to the row

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

fill - a source is unique in source name and code

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

initialize everything

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

initialize the stuff dependent on the row

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

assignment operator, uses copy semantics

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

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

Int casacore::SDSourceHandler::sourceId ( )
inline

get the current source ID

Definition at line 115 of file SDSourceHandler.h.

References sourceId_p.

Member Data Documentation

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

fields which might come from a pre-existin MS

Definition at line 138 of file SDSourceHandler.h.

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

Definition at line 117 of file SDSourceHandler.h.

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

Definition at line 140 of file SDSourceHandler.h.

Bool casacore::SDSourceHandler::hasPosition_p
private

Definition at line 135 of file SDSourceHandler.h.

Bool casacore::SDSourceHandler::hasRestFreq_p
private

Definition at line 135 of file SDSourceHandler.h.

Bool casacore::SDSourceHandler::hasSysVel_p
private

Definition at line 135 of file SDSourceHandler.h.

Bool casacore::SDSourceHandler::hasTransition_p
private

which optional colums exist

Definition at line 135 of file SDSourceHandler.h.

ColumnsIndex* casacore::SDSourceHandler::index_p
private

Definition at line 118 of file SDSourceHandler.h.

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

Definition at line 139 of file SDSourceHandler.h.

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

Definition at line 132 of file SDSourceHandler.h.

MSSource* casacore::SDSourceHandler::msSource_p
private

Definition at line 119 of file SDSourceHandler.h.

MSSourceColumns* casacore::SDSourceHandler::msSourceCols_p
private

Definition at line 120 of file SDSourceHandler.h.

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

Definition at line 117 of file SDSourceHandler.h.

Int casacore::SDSourceHandler::nextSourceId_p
private

the next source ID to use

Definition at line 126 of file SDSourceHandler.h.

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

Definition at line 132 of file SDSourceHandler.h.

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

Definition at line 132 of file SDSourceHandler.h.

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

Definition at line 140 of file SDSourceHandler.h.

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

Definition at line 140 of file SDSourceHandler.h.

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

Definition at line 138 of file SDSourceHandler.h.

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 130 of file SDSourceHandler.h.

Int casacore::SDSourceHandler::sourceId_p
private

the current source ID

Definition at line 123 of file SDSourceHandler.h.

Referenced by sourceId().

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

Definition at line 139 of file SDSourceHandler.h.

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

String fields.

Definition at line 132 of file SDSourceHandler.h.

Int casacore::SDSourceHandler::vframe_p
private

Definition at line 130 of file SDSourceHandler.h.


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