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
casa::StatWtColConfig Class Reference

This class is necessary to ensure partial initialization of SIGMA_SPECTRUM and WEIGHT_SPECTRUM in the MS is not done. More...

#include <StatWtColConfig.h>

Public Member Functions

 StatWtColConfig ()=delete
 
 StatWtColConfig (casacore::MeasurementSet *ms, casacore::Bool preview, const casacore::String &dataColumn, const casac::variant &chanbin)
 It is the caller's responsibility to ensure that the input ms represents the entire MS, and is not an MS that has had a selection applied to it. More...
 
 ~StatWtColConfig ()
 
void getColWriteFlags (casacore::Bool &mustWriteWt, casacore::Bool &mustWriteWtSp, casacore::Bool &mustWriteSig, casacore::Bool &mustWriteSigSp) const
 
void initSpecColsIfNecessary ()
 

Private Member Functions

void _dealWithSpectrumColumn (casacore::Bool &hasSpec, casacore::Bool &mustWriteSpec, casacore::Bool &mustInitSpec, casacore::Bool mustWriteNonSpec, const casacore::String &colName, const casacore::String &descName, casacore::Bool specIsInitialized, const casacore::String &mgrName)
 determine if the MS has a WEIGHT/SIGMA_SPECTRUM column, if it must be written, and/or if it must be initialized. More...
 
void _determineFlags ()
 
void _hasSpectrumIsSpectrumInitialized (casacore::Bool &hasSpectrum, casacore::Bool &spectrumIsInitialzied, casacore::MS::PredefinedColumns col) const
 
void _initSpecColsIfNecessary ()
 

Private Attributes

casacore::MeasurementSet_ms
 
casacore::Bool _mustWriteWt
 
casacore::Bool _mustWriteWtSp
 
casacore::Bool _mustInitWtSp
 
casacore::Bool _mustWriteSig
 
casacore::Bool _mustWriteSigSp
 
casacore::Bool _mustInitSigSp
 
casacore::Bool _possiblyWriteSigma
 
casacore::Bool _preview
 
casacore::String _dataColumn
 
casacore::Bool _doChanBin
 

Detailed Description

This class is necessary to ensure partial initialization of SIGMA_SPECTRUM and WEIGHT_SPECTRUM in the MS is not done.

It should be constructed using the entire MS (not an MS that has had a selection applied to it). This class will do the complete initialization of SIGMA_SPECTRUM and WEIGHT_SPECTRUM if necessary.

Definition at line 45 of file StatWtColConfig.h.

Constructor & Destructor Documentation

casa::StatWtColConfig::StatWtColConfig ( )
delete
casa::StatWtColConfig::StatWtColConfig ( casacore::MeasurementSet ms,
casacore::Bool  preview,
const casacore::String dataColumn,
const casac::variant chanbin 
)

It is the caller's responsibility to ensure that the input ms represents the entire MS, and is not an MS that has had a selection applied to it.

casa::StatWtColConfig::~StatWtColConfig ( )

Member Function Documentation

void casa::StatWtColConfig::_dealWithSpectrumColumn ( casacore::Bool hasSpec,
casacore::Bool mustWriteSpec,
casacore::Bool mustInitSpec,
casacore::Bool  mustWriteNonSpec,
const casacore::String colName,
const casacore::String descName,
casacore::Bool  specIsInitialized,
const casacore::String mgrName 
)
private

determine if the MS has a WEIGHT/SIGMA_SPECTRUM column, if it must be written, and/or if it must be initialized.

void casa::StatWtColConfig::_determineFlags ( )
private
void casa::StatWtColConfig::_hasSpectrumIsSpectrumInitialized ( casacore::Bool hasSpectrum,
casacore::Bool spectrumIsInitialzied,
casacore::MS::PredefinedColumns  col 
) const
private
void casa::StatWtColConfig::_initSpecColsIfNecessary ( )
private
void casa::StatWtColConfig::getColWriteFlags ( casacore::Bool mustWriteWt,
casacore::Bool mustWriteWtSp,
casacore::Bool mustWriteSig,
casacore::Bool mustWriteSigSp 
) const
void casa::StatWtColConfig::initSpecColsIfNecessary ( )

Member Data Documentation

casacore::String casa::StatWtColConfig::_dataColumn
private

Definition at line 78 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_doChanBin
private

Definition at line 79 of file StatWtColConfig.h.

casacore::MeasurementSet* casa::StatWtColConfig::_ms
private

Definition at line 69 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_mustInitSigSp
private

Definition at line 75 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_mustInitWtSp
private

Definition at line 72 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_mustWriteSig
private

Definition at line 73 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_mustWriteSigSp
private

Definition at line 74 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_mustWriteWt
private

Definition at line 70 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_mustWriteWtSp
private

Definition at line 71 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_possiblyWriteSigma
private

Definition at line 76 of file StatWtColConfig.h.

casacore::Bool casa::StatWtColConfig::_preview
private

Definition at line 77 of file StatWtColConfig.h.


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