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

A class to provide easy access to MSState columns. More...

#include <MSStateColumns.h>

Public Member Functions

 MSStateColumns (const MSState &msState)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSStateColumns ()
 The destructor does nothing special. More...
 
ScalarColumn< Double > & cal ()
 Access to required columns. More...
 
ScalarQuantColumn< Double > & calQuant ()
 
ScalarColumn< Bool > & flagRow ()
 
ScalarColumn< Double > & load ()
 
ScalarQuantColumn< Double > & loadQuant ()
 
ScalarColumn< String > & obsMode ()
 
ScalarColumn< Bool > & ref ()
 
ScalarColumn< Bool > & sig ()
 
ScalarColumn< Int > & subScan ()
 
const ScalarColumn< Double > & cal () const
 Const access to required columns. More...
 
const ScalarQuantColumn< Double > & calQuant () const
 
const ScalarColumn< Bool > & flagRow () const
 
const ScalarColumn< Double > & load () const
 
const ScalarQuantColumn< Double > & loadQuant () const
 
const ScalarColumn< String > & obsMode () const
 
const ScalarColumn< Bool > & ref () const
 
const ScalarColumn< Bool > & sig () const
 
const ScalarColumn< Int > & subScan () const
 
rownr_t nrow () const
 Convenience function that returns the number of rows in any of the columns. More...
 
Int64 matchState (const Quantum< Double > &stateCalQ, const Quantum< Double > &stateLoadQ, const String &stateObsMode, const Bool &stateRef, const Bool &stateSig, const Int &stateSubScan, const Quantum< Double > &tolerance, Int64 tryRow=-1)
 Returns the last row that contains a state with the specified values. More...
 

Protected Member Functions

 MSStateColumns ()
 
void attach (const MSState &msState)
 

Private Member Functions

 MSStateColumns (const MSStateColumns &)
 
MSStateColumnsoperator= (const MSStateColumns &)
 

Private Attributes

ScalarColumn< Doublecal_p
 
ScalarColumn< BoolflagRow_p
 
ScalarColumn< Doubleload_p
 
ScalarColumn< StringobsMode_p
 
ScalarColumn< Boolref_p
 
ScalarColumn< Boolsig_p
 
ScalarColumn< IntsubScan_p
 
ScalarQuantColumn< DoublecalQuant_p
 Access to Quantum columns. More...
 
ScalarQuantColumn< DoubleloadQuant_p
 

Detailed Description

A class to provide easy access to MSState columns.

Intended use:

Public interface

Review Status

Reviewed By:
Bob Garwood
Date Reviewed:
1997/02/01

Prerequisite

Etymology

MSStateColumns stands for MeasurementSet State Table columns.

Synopsis

This class provides access to the columns in the MSState Table, it does the declaration of all the Scalar and ArrayColumns with the correct types, so the application programmer doesn't have to worry about getting those right. There is an access function for every predefined column. Access to non-predefined columns will still have to be done with explicit declarations. See MSColumns for an example.

Motivation

See MSColumns for the motivation.

Definition at line 72 of file MSStateColumns.h.

Constructor & Destructor Documentation

casacore::MSStateColumns::MSStateColumns ( const MSState msState)

Create a columns object that accesses the data in the specified Table.

casacore::MSStateColumns::~MSStateColumns ( )

The destructor does nothing special.

casacore::MSStateColumns::MSStateColumns ( )
protected
casacore::MSStateColumns::MSStateColumns ( const MSStateColumns )
private

Member Function Documentation

void casacore::MSStateColumns::attach ( const MSState msState)
protected
ScalarColumn<Double>& casacore::MSStateColumns::cal ( )
inline

Access to required columns.

Definition at line 83 of file MSStateColumns.h.

References cal_p.

const ScalarColumn<Double>& casacore::MSStateColumns::cal ( ) const
inline

Const access to required columns.

Definition at line 96 of file MSStateColumns.h.

References cal_p.

ScalarQuantColumn<Double>& casacore::MSStateColumns::calQuant ( )
inline

Definition at line 84 of file MSStateColumns.h.

References calQuant_p.

const ScalarQuantColumn<Double>& casacore::MSStateColumns::calQuant ( ) const
inline

Definition at line 97 of file MSStateColumns.h.

References calQuant_p.

ScalarColumn<Bool>& casacore::MSStateColumns::flagRow ( )
inline

Definition at line 85 of file MSStateColumns.h.

References flagRow_p.

const ScalarColumn<Bool>& casacore::MSStateColumns::flagRow ( ) const
inline

Definition at line 98 of file MSStateColumns.h.

References flagRow_p.

ScalarColumn<Double>& casacore::MSStateColumns::load ( )
inline

Definition at line 86 of file MSStateColumns.h.

References load_p.

const ScalarColumn<Double>& casacore::MSStateColumns::load ( ) const
inline

Definition at line 99 of file MSStateColumns.h.

References load_p.

ScalarQuantColumn<Double>& casacore::MSStateColumns::loadQuant ( )
inline

Definition at line 87 of file MSStateColumns.h.

References loadQuant_p.

const ScalarQuantColumn<Double>& casacore::MSStateColumns::loadQuant ( ) const
inline

Definition at line 100 of file MSStateColumns.h.

References loadQuant_p.

Int64 casacore::MSStateColumns::matchState ( const Quantum< Double > &  stateCalQ,
const Quantum< Double > &  stateLoadQ,
const String stateObsMode,
const Bool stateRef,
const Bool stateSig,
const Int stateSubScan,
const Quantum< Double > &  tolerance,
Int64  tryRow = -1 
)

Returns the last row that contains a state with the specified values.

For Cal and Load, the tolerance is applied in the match. Returns -1 if no match could be found. Flagged rows can never match. If tryRow is non-negative, then that row is tested to see if it matches before any others are tested. Setting tryRow to a positive value greater than the table length will throw an exception (AipsError), when compiled in debug mode.

rownr_t casacore::MSStateColumns::nrow ( ) const
inline

Convenience function that returns the number of rows in any of the columns.

Definition at line 108 of file MSStateColumns.h.

References cal_p, and casacore::TableColumn::nrow().

ScalarColumn<String>& casacore::MSStateColumns::obsMode ( )
inline

Definition at line 88 of file MSStateColumns.h.

References obsMode_p.

const ScalarColumn<String>& casacore::MSStateColumns::obsMode ( ) const
inline

Definition at line 101 of file MSStateColumns.h.

References obsMode_p.

MSStateColumns& casacore::MSStateColumns::operator= ( const MSStateColumns )
private
ScalarColumn<Bool>& casacore::MSStateColumns::ref ( )
inline

Definition at line 89 of file MSStateColumns.h.

References ref_p.

const ScalarColumn<Bool>& casacore::MSStateColumns::ref ( ) const
inline

Definition at line 102 of file MSStateColumns.h.

References ref_p.

ScalarColumn<Bool>& casacore::MSStateColumns::sig ( )
inline

Definition at line 90 of file MSStateColumns.h.

References sig_p.

const ScalarColumn<Bool>& casacore::MSStateColumns::sig ( ) const
inline

Definition at line 103 of file MSStateColumns.h.

References sig_p.

ScalarColumn<Int>& casacore::MSStateColumns::subScan ( )
inline

Definition at line 91 of file MSStateColumns.h.

References subScan_p.

const ScalarColumn<Int>& casacore::MSStateColumns::subScan ( ) const
inline

Definition at line 104 of file MSStateColumns.h.

References subScan_p.

Member Data Documentation

ScalarColumn<Double> casacore::MSStateColumns::cal_p
private

Definition at line 141 of file MSStateColumns.h.

Referenced by cal(), and nrow().

ScalarQuantColumn<Double> casacore::MSStateColumns::calQuant_p
private

Access to Quantum columns.

Definition at line 150 of file MSStateColumns.h.

Referenced by calQuant().

ScalarColumn<Bool> casacore::MSStateColumns::flagRow_p
private

Definition at line 142 of file MSStateColumns.h.

Referenced by flagRow().

ScalarColumn<Double> casacore::MSStateColumns::load_p
private

Definition at line 143 of file MSStateColumns.h.

Referenced by load().

ScalarQuantColumn<Double> casacore::MSStateColumns::loadQuant_p
private

Definition at line 151 of file MSStateColumns.h.

Referenced by loadQuant().

ScalarColumn<String> casacore::MSStateColumns::obsMode_p
private

Definition at line 144 of file MSStateColumns.h.

Referenced by obsMode().

ScalarColumn<Bool> casacore::MSStateColumns::ref_p
private

Definition at line 145 of file MSStateColumns.h.

Referenced by ref().

ScalarColumn<Bool> casacore::MSStateColumns::sig_p
private

Definition at line 146 of file MSStateColumns.h.

Referenced by sig().

ScalarColumn<Int> casacore::MSStateColumns::subScan_p
private

Definition at line 147 of file MSStateColumns.h.

Referenced by subScan().


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