casacore
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::MSProcessorColumns Class Reference

More...

#include <MSProcessorColumns.h>

Public Member Functions

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

Protected Member Functions

 MSProcessorColumns ()
 
void attach (const MSProcessor &msProcessor)
 

Private Member Functions

 MSProcessorColumns (const MSProcessorColumns &)
 
MSProcessorColumnsoperator= (const MSProcessorColumns &)
 
void attachOptionalCols (const MSProcessor &msProcessor)
 

Private Attributes

ScalarColumn< BoolflagRow_p
 
ScalarColumn< IntmodeId_p
 
ScalarColumn< Stringtype_p
 
ScalarColumn< InttypeId_p
 
ScalarColumn< StringsubType_p
 
ScalarColumn< IntpassId_p
 

Detailed Description

A class to provide easy access to MSProcessor columns

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSProcessorColumns stands for MeasurementSet Processor Table columns.

Synopsis

This class provides 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 MSColumns for an example.

Motivation

See MSColumns for the motivation.

Definition at line 71 of file MSProcessorColumns.h.

Constructor & Destructor Documentation

◆ MSProcessorColumns() [1/3]

casacore::MSProcessorColumns::MSProcessorColumns ( const MSProcessor msProcessor)

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

◆ ~MSProcessorColumns()

casacore::MSProcessorColumns::~MSProcessorColumns ( )

The destructor does nothing special.

◆ MSProcessorColumns() [2/3]

casacore::MSProcessorColumns::MSProcessorColumns ( )
protected

◆ MSProcessorColumns() [3/3]

casacore::MSProcessorColumns::MSProcessorColumns ( const MSProcessorColumns )
private

Member Function Documentation

◆ attach()

void casacore::MSProcessorColumns::attach ( const MSProcessor msProcessor)
protected

◆ attachOptionalCols()

void casacore::MSProcessorColumns::attachOptionalCols ( const MSProcessor msProcessor)
private

◆ flagRow() [1/2]

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

Access to required columns.

Definition at line 82 of file MSProcessorColumns.h.

References flagRow_p.

◆ flagRow() [2/2]

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

Const access to required columns.

Definition at line 96 of file MSProcessorColumns.h.

References flagRow_p.

◆ modeId() [1/2]

ScalarColumn<Int>& casacore::MSProcessorColumns::modeId ( )
inline

Definition at line 83 of file MSProcessorColumns.h.

References modeId_p.

◆ modeId() [2/2]

const ScalarColumn<Int>& casacore::MSProcessorColumns::modeId ( ) const
inline

Definition at line 97 of file MSProcessorColumns.h.

References modeId_p.

◆ nrow()

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

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

Definition at line 109 of file MSProcessorColumns.h.

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

◆ operator=()

MSProcessorColumns& casacore::MSProcessorColumns::operator= ( const MSProcessorColumns )
private

◆ passId() [1/2]

ScalarColumn<Int>& casacore::MSProcessorColumns::passId ( )
inline

Access to optional columns.

Definition at line 91 of file MSProcessorColumns.h.

References passId_p.

◆ passId() [2/2]

const ScalarColumn<Int>& casacore::MSProcessorColumns::passId ( ) const
inline

Const access to optional columns.

Definition at line 105 of file MSProcessorColumns.h.

References passId_p.

◆ subType() [1/2]

ScalarColumn<String>& casacore::MSProcessorColumns::subType ( )
inline

Definition at line 86 of file MSProcessorColumns.h.

References subType_p.

◆ subType() [2/2]

const ScalarColumn<String>& casacore::MSProcessorColumns::subType ( ) const
inline

Definition at line 100 of file MSProcessorColumns.h.

References subType_p.

◆ type() [1/2]

ScalarColumn<String>& casacore::MSProcessorColumns::type ( )
inline

Definition at line 84 of file MSProcessorColumns.h.

References type_p.

◆ type() [2/2]

const ScalarColumn<String>& casacore::MSProcessorColumns::type ( ) const
inline

Definition at line 98 of file MSProcessorColumns.h.

References type_p.

◆ typeId() [1/2]

ScalarColumn<Int>& casacore::MSProcessorColumns::typeId ( )
inline

Definition at line 85 of file MSProcessorColumns.h.

References typeId_p.

◆ typeId() [2/2]

const ScalarColumn<Int>& casacore::MSProcessorColumns::typeId ( ) const
inline

Definition at line 99 of file MSProcessorColumns.h.

References typeId_p.

Member Data Documentation

◆ flagRow_p

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

Definition at line 129 of file MSProcessorColumns.h.

Referenced by flagRow(), and nrow().

◆ modeId_p

ScalarColumn<Int> casacore::MSProcessorColumns::modeId_p
private

Definition at line 130 of file MSProcessorColumns.h.

Referenced by modeId().

◆ passId_p

ScalarColumn<Int> casacore::MSProcessorColumns::passId_p
private

Definition at line 135 of file MSProcessorColumns.h.

Referenced by passId().

◆ subType_p

ScalarColumn<String> casacore::MSProcessorColumns::subType_p
private

Definition at line 133 of file MSProcessorColumns.h.

Referenced by subType().

◆ type_p

ScalarColumn<String> casacore::MSProcessorColumns::type_p
private

Definition at line 131 of file MSProcessorColumns.h.

Referenced by type().

◆ typeId_p

ScalarColumn<Int> casacore::MSProcessorColumns::typeId_p
private

Definition at line 132 of file MSProcessorColumns.h.

Referenced by typeId().


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