casa  5.7.0-16
 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::ROMSProcessorColumns Class Reference

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

#include <MSProcessorColumns.h>

Inheritance diagram for casacore::ROMSProcessorColumns:
casacore::MSProcessorColumns

Public Member Functions

 ROMSProcessorColumns (const MSProcessor &msProcessor)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~ROMSProcessorColumns ()
 The destructor does nothing special. More...
 
const ROScalarColumn< Bool > & flagRow () const
 Access to required columns. More...
 
const ROScalarColumn< Int > & modeId () const
 
const ROScalarColumn< String > & type () const
 
const ROScalarColumn< Int > & typeId () const
 
const ROScalarColumn< String > & subType () const
 
const ROScalarColumn< Int > & passId () const
 Read-only access to optional columns. More...
 
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns. More...
 

Protected Member Functions

 ROMSProcessorColumns ()
 
void attach (const MSProcessor &msProcessor)
 

Private Member Functions

 ROMSProcessorColumns (const ROMSProcessorColumns &)
 
ROMSProcessorColumnsoperator= (const ROMSProcessorColumns &)
 
void attachOptionalCols (const MSProcessor &msField)
 

Private Attributes

ROScalarColumn< BoolflagRow_p
 
ROScalarColumn< IntmodeId_p
 
ROScalarColumn< Stringtype_p
 
ROScalarColumn< InttypeId_p
 
ROScalarColumn< StringsubType_p
 
ROScalarColumn< IntpassId_p
 

Detailed Description

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

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

ROMSProcessorColumns stands for Read-Only MeasurementSet Processor Table columns.

Synopsis

This class provides read-only access to the columns in the MSProcessor 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 MSProcessorColumns.h.

Constructor & Destructor Documentation

casacore::ROMSProcessorColumns::ROMSProcessorColumns ( const MSProcessor msProcessor)

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

casacore::ROMSProcessorColumns::~ROMSProcessorColumns ( )

The destructor does nothing special.

casacore::ROMSProcessorColumns::ROMSProcessorColumns ( )
protected
casacore::ROMSProcessorColumns::ROMSProcessorColumns ( const ROMSProcessorColumns )
private

Member Function Documentation

void casacore::ROMSProcessorColumns::attach ( const MSProcessor msProcessor)
protected
void casacore::ROMSProcessorColumns::attachOptionalCols ( const MSProcessor msField)
private
const ROScalarColumn<Bool>& casacore::ROMSProcessorColumns::flagRow ( ) const
inline

Access to required columns.

Definition at line 83 of file MSProcessorColumns.h.

References flagRow_p.

Referenced by casacore::MSProcessorColumns::flagRow().

const ROScalarColumn<Int>& casacore::ROMSProcessorColumns::modeId ( ) const
inline

Definition at line 84 of file MSProcessorColumns.h.

References modeId_p.

Referenced by casacore::MSProcessorColumns::modeId().

uInt casacore::ROMSProcessorColumns::nrow ( ) const
inline

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

Definition at line 96 of file MSProcessorColumns.h.

References flagRow_p.

Referenced by casa::sdfiller::ProcessorRecord::fill().

ROMSProcessorColumns& casacore::ROMSProcessorColumns::operator= ( const ROMSProcessorColumns )
private
const ROScalarColumn<Int>& casacore::ROMSProcessorColumns::passId ( ) const
inline

Read-only access to optional columns.

Definition at line 92 of file MSProcessorColumns.h.

References passId_p.

Referenced by casacore::MSProcessorColumns::passId().

const ROScalarColumn<String>& casacore::ROMSProcessorColumns::subType ( ) const
inline

Definition at line 87 of file MSProcessorColumns.h.

References subType_p.

Referenced by casacore::MSProcessorColumns::subType().

const ROScalarColumn<String>& casacore::ROMSProcessorColumns::type ( ) const
inline

Definition at line 85 of file MSProcessorColumns.h.

References type_p.

Referenced by casacore::MSProcessorColumns::type().

const ROScalarColumn<Int>& casacore::ROMSProcessorColumns::typeId ( ) const
inline

Definition at line 86 of file MSProcessorColumns.h.

References typeId_p.

Referenced by casacore::MSProcessorColumns::typeId().

Member Data Documentation

ROScalarColumn<Bool> casacore::ROMSProcessorColumns::flagRow_p
private

Definition at line 116 of file MSProcessorColumns.h.

Referenced by flagRow(), and nrow().

ROScalarColumn<Int> casacore::ROMSProcessorColumns::modeId_p
private

Definition at line 117 of file MSProcessorColumns.h.

Referenced by modeId().

ROScalarColumn<Int> casacore::ROMSProcessorColumns::passId_p
private

Definition at line 122 of file MSProcessorColumns.h.

Referenced by passId().

ROScalarColumn<String> casacore::ROMSProcessorColumns::subType_p
private

Definition at line 120 of file MSProcessorColumns.h.

Referenced by subType().

ROScalarColumn<String> casacore::ROMSProcessorColumns::type_p
private

Definition at line 118 of file MSProcessorColumns.h.

Referenced by type().

ROScalarColumn<Int> casacore::ROMSProcessorColumns::typeId_p
private

Definition at line 119 of file MSProcessorColumns.h.

Referenced by typeId().


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