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

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

#include <MSFreqOffColumns.h>

Public Member Functions

 MSFreqOffsetColumns (const MSFreqOffset &msFreqOffset)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSFreqOffsetColumns ()
 The destructor does nothing special. More...
 
Bool isNull () const
 Is this object defined? (MSFreqOffset table is optional) More...
 
ScalarColumn< Int > & antenna1 ()
 Access to required columns. More...
 
ScalarColumn< Int > & antenna2 ()
 
ScalarColumn< Int > & feedId ()
 
ScalarColumn< Double > & interval ()
 
ScalarQuantColumn< Double > & intervalQuant ()
 
ScalarColumn< Double > & offset ()
 
ScalarQuantColumn< Double > & offsetQuant ()
 
ScalarColumn< Int > & spectralWindowId ()
 
ScalarColumn< Double > & time ()
 
ScalarQuantColumn< Double > & timeQuant ()
 
ScalarMeasColumn< MEpoch > & timeMeas ()
 
const ScalarColumn< Int > & antenna1 () const
 Const access to required columns. More...
 
const ScalarColumn< Int > & antenna2 () const
 
const ScalarColumn< Int > & feedId () const
 
const ScalarColumn< Double > & interval () const
 
const ScalarQuantColumn< Double > & intervalQuant () const
 
const ScalarColumn< Double > & offset () const
 
const ScalarQuantColumn< Double > & offsetQuant () const
 
const ScalarColumn< Int > & spectralWindowId () const
 
const ScalarColumn< Double > & time () const
 
const ScalarQuantColumn< Double > & timeQuant () const
 
const ScalarMeasColumn< MEpoch > & timeMeas () const
 
rownr_t nrow () const
 Convenience function that returns the number of rows in any of the columns. More...
 
void setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True)
 set the epoch type for the TIME column. More...
 

Protected Member Functions

 MSFreqOffsetColumns ()
 
void attach (const MSFreqOffset &msFreqOffset)
 

Private Member Functions

 MSFreqOffsetColumns (const MSFreqOffsetColumns &)
 
MSFreqOffsetColumnsoperator= (const MSFreqOffsetColumns &)
 

Private Attributes

Bool isNull_p
 
ScalarColumn< Intantenna1_p
 
ScalarColumn< Intantenna2_p
 
ScalarColumn< IntfeedId_p
 
ScalarColumn< Doubleinterval_p
 
ScalarColumn< Doubleoffset_p
 
ScalarColumn< IntspectralWindowId_p
 
ScalarColumn< Doubletime_p
 
ScalarMeasColumn< MEpochtimeMeas_p
 
ScalarQuantColumn< DoubleintervalQuant_p
 
ScalarQuantColumn< DoubleoffsetQuant_p
 
ScalarQuantColumn< DoubletimeQuant_p
 

Detailed Description

A class to provide easy access to MSFreqOffset columns.

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSFreqOffsetColumns stands for MeasurementSet FreqOffset Table columns.

Synopsis

This class provides access to the columns in the MSFreqOffset 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 75 of file MSFreqOffColumns.h.

Constructor & Destructor Documentation

casacore::MSFreqOffsetColumns::MSFreqOffsetColumns ( const MSFreqOffset msFreqOffset)

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

casacore::MSFreqOffsetColumns::~MSFreqOffsetColumns ( )

The destructor does nothing special.

casacore::MSFreqOffsetColumns::MSFreqOffsetColumns ( )
protected
casacore::MSFreqOffsetColumns::MSFreqOffsetColumns ( const MSFreqOffsetColumns )
private

Member Function Documentation

ScalarColumn<Int>& casacore::MSFreqOffsetColumns::antenna1 ( )
inline

Access to required columns.

Definition at line 89 of file MSFreqOffColumns.h.

References antenna1_p.

const ScalarColumn<Int>& casacore::MSFreqOffsetColumns::antenna1 ( ) const
inline

Const access to required columns.

Definition at line 104 of file MSFreqOffColumns.h.

References antenna1_p.

ScalarColumn<Int>& casacore::MSFreqOffsetColumns::antenna2 ( )
inline

Definition at line 90 of file MSFreqOffColumns.h.

References antenna2_p.

const ScalarColumn<Int>& casacore::MSFreqOffsetColumns::antenna2 ( ) const
inline

Definition at line 105 of file MSFreqOffColumns.h.

References antenna2_p.

void casacore::MSFreqOffsetColumns::attach ( const MSFreqOffset msFreqOffset)
protected
ScalarColumn<Int>& casacore::MSFreqOffsetColumns::feedId ( )
inline

Definition at line 91 of file MSFreqOffColumns.h.

References feedId_p.

const ScalarColumn<Int>& casacore::MSFreqOffsetColumns::feedId ( ) const
inline

Definition at line 106 of file MSFreqOffColumns.h.

References feedId_p.

ScalarColumn<Double>& casacore::MSFreqOffsetColumns::interval ( )
inline

Definition at line 92 of file MSFreqOffColumns.h.

References interval_p.

const ScalarColumn<Double>& casacore::MSFreqOffsetColumns::interval ( ) const
inline

Definition at line 107 of file MSFreqOffColumns.h.

References interval_p.

ScalarQuantColumn<Double>& casacore::MSFreqOffsetColumns::intervalQuant ( )
inline

Definition at line 93 of file MSFreqOffColumns.h.

References intervalQuant_p.

const ScalarQuantColumn<Double>& casacore::MSFreqOffsetColumns::intervalQuant ( ) const
inline

Definition at line 108 of file MSFreqOffColumns.h.

References intervalQuant_p.

Bool casacore::MSFreqOffsetColumns::isNull ( ) const
inline

Is this object defined? (MSFreqOffset table is optional)

Definition at line 85 of file MSFreqOffColumns.h.

References isNull_p.

Referenced by nrow().

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

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

Returns zero if the object is null.

Definition at line 119 of file MSFreqOffColumns.h.

References antenna1_p, isNull(), and casacore::TableColumn::nrow().

ScalarColumn<Double>& casacore::MSFreqOffsetColumns::offset ( )
inline

Definition at line 94 of file MSFreqOffColumns.h.

References offset_p.

const ScalarColumn<Double>& casacore::MSFreqOffsetColumns::offset ( ) const
inline

Definition at line 109 of file MSFreqOffColumns.h.

References offset_p.

ScalarQuantColumn<Double>& casacore::MSFreqOffsetColumns::offsetQuant ( )
inline

Definition at line 95 of file MSFreqOffColumns.h.

References offsetQuant_p.

const ScalarQuantColumn<Double>& casacore::MSFreqOffsetColumns::offsetQuant ( ) const
inline

Definition at line 110 of file MSFreqOffColumns.h.

References offsetQuant_p.

MSFreqOffsetColumns& casacore::MSFreqOffsetColumns::operator= ( const MSFreqOffsetColumns )
private
void casacore::MSFreqOffsetColumns::setEpochRef ( MEpoch::Types  ref,
Bool  tableMustBeEmpty = True 
)

set the epoch type for the TIME column.


Tip: In principle this function can only be used if the table is empty, otherwise already written values may thereafter have an incorrect reference, offset, or unit; However, it is possible that part of the table gets written before these values are known; In that case the reference, offset, or units can be set by using a False tableMustBeEmpty argument;

ScalarColumn<Int>& casacore::MSFreqOffsetColumns::spectralWindowId ( )
inline

Definition at line 96 of file MSFreqOffColumns.h.

References spectralWindowId_p.

const ScalarColumn<Int>& casacore::MSFreqOffsetColumns::spectralWindowId ( ) const
inline

Definition at line 111 of file MSFreqOffColumns.h.

References spectralWindowId_p.

ScalarColumn<Double>& casacore::MSFreqOffsetColumns::time ( )
inline

Definition at line 97 of file MSFreqOffColumns.h.

References time_p.

const ScalarColumn<Double>& casacore::MSFreqOffsetColumns::time ( ) const
inline

Definition at line 112 of file MSFreqOffColumns.h.

References time_p.

ScalarMeasColumn<MEpoch>& casacore::MSFreqOffsetColumns::timeMeas ( )
inline

Definition at line 99 of file MSFreqOffColumns.h.

References timeMeas_p.

const ScalarMeasColumn<MEpoch>& casacore::MSFreqOffsetColumns::timeMeas ( ) const
inline

Definition at line 114 of file MSFreqOffColumns.h.

References timeMeas_p.

ScalarQuantColumn<Double>& casacore::MSFreqOffsetColumns::timeQuant ( )
inline

Definition at line 98 of file MSFreqOffColumns.h.

References timeQuant_p.

const ScalarQuantColumn<Double>& casacore::MSFreqOffsetColumns::timeQuant ( ) const
inline

Definition at line 113 of file MSFreqOffColumns.h.

References timeQuant_p.

Member Data Documentation

ScalarColumn<Int> casacore::MSFreqOffsetColumns::antenna1_p
private

Definition at line 150 of file MSFreqOffColumns.h.

Referenced by antenna1(), and nrow().

ScalarColumn<Int> casacore::MSFreqOffsetColumns::antenna2_p
private

Definition at line 151 of file MSFreqOffColumns.h.

Referenced by antenna2().

ScalarColumn<Int> casacore::MSFreqOffsetColumns::feedId_p
private

Definition at line 152 of file MSFreqOffColumns.h.

Referenced by feedId().

ScalarColumn<Double> casacore::MSFreqOffsetColumns::interval_p
private

Definition at line 153 of file MSFreqOffColumns.h.

Referenced by interval().

ScalarQuantColumn<Double> casacore::MSFreqOffsetColumns::intervalQuant_p
private

Definition at line 162 of file MSFreqOffColumns.h.

Referenced by intervalQuant().

Bool casacore::MSFreqOffsetColumns::isNull_p
private

Definition at line 147 of file MSFreqOffColumns.h.

Referenced by isNull().

ScalarColumn<Double> casacore::MSFreqOffsetColumns::offset_p
private

Definition at line 154 of file MSFreqOffColumns.h.

Referenced by offset().

ScalarQuantColumn<Double> casacore::MSFreqOffsetColumns::offsetQuant_p
private

Definition at line 163 of file MSFreqOffColumns.h.

Referenced by offsetQuant().

ScalarColumn<Int> casacore::MSFreqOffsetColumns::spectralWindowId_p
private

Definition at line 155 of file MSFreqOffColumns.h.

Referenced by spectralWindowId().

ScalarColumn<Double> casacore::MSFreqOffsetColumns::time_p
private

Definition at line 156 of file MSFreqOffColumns.h.

Referenced by time().

ScalarMeasColumn<MEpoch> casacore::MSFreqOffsetColumns::timeMeas_p
private

Definition at line 159 of file MSFreqOffColumns.h.

Referenced by timeMeas().

ScalarQuantColumn<Double> casacore::MSFreqOffsetColumns::timeQuant_p
private

Definition at line 164 of file MSFreqOffColumns.h.

Referenced by timeQuant().


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