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::MSProcessorColumns Class Reference

A class to provide easy access to MSProcessor columns. 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

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

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

casacore::MSProcessorColumns::~MSProcessorColumns ( )

The destructor does nothing special.

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

Member Function Documentation

void casacore::MSProcessorColumns::attach ( const MSProcessor msProcessor)
protected
void casacore::MSProcessorColumns::attachOptionalCols ( const MSProcessor msProcessor)
private
ScalarColumn<Bool>& casacore::MSProcessorColumns::flagRow ( )
inline

Access to required columns.

Definition at line 82 of file MSProcessorColumns.h.

References flagRow_p.

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

Const access to required columns.

Definition at line 96 of file MSProcessorColumns.h.

References flagRow_p.

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

Definition at line 83 of file MSProcessorColumns.h.

References modeId_p.

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

Definition at line 97 of file MSProcessorColumns.h.

References modeId_p.

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().

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

Access to optional columns.

Definition at line 91 of file MSProcessorColumns.h.

References passId_p.

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

Const access to optional columns.

Definition at line 105 of file MSProcessorColumns.h.

References passId_p.

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

Definition at line 86 of file MSProcessorColumns.h.

References subType_p.

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

Definition at line 100 of file MSProcessorColumns.h.

References subType_p.

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

Definition at line 84 of file MSProcessorColumns.h.

References type_p.

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

Definition at line 98 of file MSProcessorColumns.h.

References type_p.

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

Definition at line 85 of file MSProcessorColumns.h.

References typeId_p.

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

Definition at line 99 of file MSProcessorColumns.h.

References typeId_p.

Member Data Documentation

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

Definition at line 129 of file MSProcessorColumns.h.

Referenced by flagRow(), and nrow().

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

Definition at line 130 of file MSProcessorColumns.h.

Referenced by modeId().

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

Definition at line 135 of file MSProcessorColumns.h.

Referenced by passId().

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

Definition at line 133 of file MSProcessorColumns.h.

Referenced by subType().

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

Definition at line 131 of file MSProcessorColumns.h.

Referenced by type().

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: