casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
casa::ROMSStateColumns Class Reference

A class to provide easy read-only access to MSState columns. More...

#include <MSStateColumns.h>

Inheritance diagram for casa::ROMSStateColumns:
casa::MSStateColumns

List of all members.

Public Member Functions

 ROMSStateColumns (const MSState &msState)
 Create a columns object that accesses the data in the specified Table.
 ~ROMSStateColumns ()
 The destructor does nothing special.
const ROScalarColumn< Double > & cal () const
 Access to required columns.
const ROScalarQuantColumn
< Double > & 
calQuant () const
const ROScalarColumn< Bool > & flagRow () const
const ROScalarColumn< Double > & load () const
const ROScalarQuantColumn
< Double > & 
loadQuant () const
const ROScalarColumn< String > & obsMode () const
const ROScalarColumn< Bool > & ref () const
const ROScalarColumn< Bool > & sig () const
const ROScalarColumn< Int > & subScan () const
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns.
Int 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, Int tryRow=-1)
 Returns the last row that contains a state with the specified values.

Protected Member Functions

 ROMSStateColumns ()
void attach (const MSState &msState)

Private Member Functions

 ROMSStateColumns (const ROMSStateColumns &)
ROMSStateColumnsoperator= (const ROMSStateColumns &)

Private Attributes

ROScalarColumn< Doublecal_p
ROScalarColumn< BoolflagRow_p
ROScalarColumn< Doubleload_p
ROScalarColumn< StringobsMode_p
ROScalarColumn< Boolref_p
ROScalarColumn< Boolsig_p
ROScalarColumn< IntsubScan_p
ROScalarQuantColumn< DoublecalQuant_p
ROScalarQuantColumn< DoubleloadQuant_p

Detailed Description

A class to provide easy read-only access to MSState columns.

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

ROMSStateColumns stands for Read-Only MeasurementSet State Table columns.

Synopsis

This class provides read-only 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 ROMSColumns for an example.

Motivation

See MSColumns for the motivation.

Definition at line 72 of file MSStateColumns.h.


Constructor & Destructor Documentation

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

The destructor does nothing special.


Member Function Documentation

void casa::ROMSStateColumns::attach ( const MSState msState) [protected]

Access to required columns.

Definition at line 83 of file MSStateColumns.h.

References cal_p.

Definition at line 84 of file MSStateColumns.h.

References calQuant_p.

Definition at line 85 of file MSStateColumns.h.

References flagRow_p.

Definition at line 86 of file MSStateColumns.h.

References load_p.

Definition at line 87 of file MSStateColumns.h.

References loadQuant_p.

Int casa::ROMSStateColumns::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,
Int  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.

uInt casa::ROMSStateColumns::nrow ( ) const [inline]

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

Definition at line 95 of file MSStateColumns.h.

References cal_p.

Definition at line 88 of file MSStateColumns.h.

References obsMode_p.

ROMSStateColumns& casa::ROMSStateColumns::operator= ( const ROMSStateColumns ) [private]
const ROScalarColumn<Bool>& casa::ROMSStateColumns::ref ( ) const [inline]

Definition at line 89 of file MSStateColumns.h.

References ref_p.

const ROScalarColumn<Bool>& casa::ROMSStateColumns::sig ( ) const [inline]

Definition at line 90 of file MSStateColumns.h.

References sig_p.

Definition at line 91 of file MSStateColumns.h.

References subScan_p.


Member Data Documentation

Reimplemented in casa::MSStateColumns.

Definition at line 129 of file MSStateColumns.h.

Referenced by cal(), and nrow().

Reimplemented in casa::MSStateColumns.

Definition at line 138 of file MSStateColumns.h.

Referenced by calQuant().

Reimplemented in casa::MSStateColumns.

Definition at line 130 of file MSStateColumns.h.

Referenced by flagRow().

Reimplemented in casa::MSStateColumns.

Definition at line 131 of file MSStateColumns.h.

Referenced by load().

Reimplemented in casa::MSStateColumns.

Definition at line 139 of file MSStateColumns.h.

Referenced by loadQuant().

Reimplemented in casa::MSStateColumns.

Definition at line 132 of file MSStateColumns.h.

Referenced by obsMode().

Reimplemented in casa::MSStateColumns.

Definition at line 133 of file MSStateColumns.h.

Referenced by ref().

Reimplemented in casa::MSStateColumns.

Definition at line 134 of file MSStateColumns.h.

Referenced by sig().

Reimplemented in casa::MSStateColumns.

Definition at line 135 of file MSStateColumns.h.

Referenced by subScan().


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