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

A class to provide easy read-write access to MSFreqOffset columns. More...

#include <MSFreqOffColumns.h>

Inheritance diagram for casacore::MSFreqOffsetColumns:
casacore::ROMSFreqOffsetColumns

Public Member Functions

 MSFreqOffsetColumns (MSFreqOffset &msFreqOffset)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSFreqOffsetColumns ()
 The destructor does nothing special. More...
 
ScalarColumn< Int > & antenna1 ()
 Read-write 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 ROScalarColumn< Int > & antenna1 () const
 Read-only access to required columns. More...
 
const ROScalarColumn< Int > & antenna2 () const
 
const ROScalarColumn< Int > & feedId () const
 
const ROScalarColumn< Double > & interval () const
 
const ROScalarQuantColumn
< Double > & 
intervalQuant () const
 
const ROScalarColumn< Double > & offset () const
 
const ROScalarQuantColumn
< Double > & 
offsetQuant () const
 
const ROScalarColumn< Int > & spectralWindowId () const
 
const ROScalarColumn< Double > & time () const
 
const ROScalarQuantColumn
< Double > & 
timeQuant () const
 
const ROScalarMeasColumn
< MEpoch > & 
timeMeas () const
 
void setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True)
 set the epoch type for the TIME column. More...
 
- Public Member Functions inherited from casacore::ROMSFreqOffsetColumns
 ROMSFreqOffsetColumns (const MSFreqOffset &msFreqOffset)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~ROMSFreqOffsetColumns ()
 The destructor does nothing special. More...
 
Bool isNull () const
 Is this object defined? (MSFreqOffset table is optional) More...
 
const ROScalarColumn< Int > & antenna1 () const
 Access to columns. More...
 
const ROScalarColumn< Int > & antenna2 () const
 
const ROScalarColumn< Int > & feedId () const
 
const ROScalarColumn< Double > & interval () const
 
const ROScalarQuantColumn
< Double > & 
intervalQuant () const
 
const ROScalarColumn< Double > & offset () const
 
const ROScalarQuantColumn
< Double > & 
offsetQuant () const
 
const ROScalarColumn< Int > & spectralWindowId () const
 
const ROScalarColumn< Double > & time () const
 
const ROScalarQuantColumn
< Double > & 
timeQuant () const
 
const ROScalarMeasColumn
< MEpoch > & 
timeMeas () const
 
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns. More...
 

Protected Member Functions

 MSFreqOffsetColumns ()
 
void attach (MSFreqOffset &msFreqOffset)
 
- Protected Member Functions inherited from casacore::ROMSFreqOffsetColumns
 ROMSFreqOffsetColumns ()
 
void attach (const MSFreqOffset &msFreqOffset)
 

Private Member Functions

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

Private Attributes

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 read-write 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 179 of file MSFreqOffColumns.h.

Constructor & Destructor Documentation

casacore::MSFreqOffsetColumns::MSFreqOffsetColumns ( 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 ( void  )
inline

Read-write access to required columns.

Definition at line 190 of file MSFreqOffColumns.h.

References antenna1_p.

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

Read-only access to required columns.

Definition at line 205 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::antenna1().

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

Definition at line 191 of file MSFreqOffColumns.h.

References antenna2_p.

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

Definition at line 207 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::antenna2().

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

Definition at line 192 of file MSFreqOffColumns.h.

References feedId_p.

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

Definition at line 209 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::feedId().

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

Definition at line 193 of file MSFreqOffColumns.h.

References interval_p.

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

Definition at line 211 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::interval().

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

Definition at line 194 of file MSFreqOffColumns.h.

References intervalQuant_p.

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

Definition at line 195 of file MSFreqOffColumns.h.

References offset_p.

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

Definition at line 215 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::offset().

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

Definition at line 196 of file MSFreqOffColumns.h.

References offsetQuant_p.

const ROScalarQuantColumn<Double>& casacore::MSFreqOffsetColumns::offsetQuant ( ) const
inline
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 197 of file MSFreqOffColumns.h.

References spectralWindowId_p.

const ROScalarColumn<Int>& casacore::MSFreqOffsetColumns::spectralWindowId ( ) const
inline
ScalarColumn<Double>& casacore::MSFreqOffsetColumns::time ( void  )
inline

Definition at line 198 of file MSFreqOffColumns.h.

References time_p.

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

Definition at line 221 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::time().

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

Definition at line 200 of file MSFreqOffColumns.h.

References timeMeas_p.

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

Definition at line 225 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::timeMeas().

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

Definition at line 199 of file MSFreqOffColumns.h.

References timeQuant_p.

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

Definition at line 223 of file MSFreqOffColumns.h.

References casacore::ROMSFreqOffsetColumns::timeQuant().

Member Data Documentation

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

Definition at line 255 of file MSFreqOffColumns.h.

Referenced by antenna1().

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

Definition at line 256 of file MSFreqOffColumns.h.

Referenced by antenna2().

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

Definition at line 257 of file MSFreqOffColumns.h.

Referenced by feedId().

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

Definition at line 258 of file MSFreqOffColumns.h.

Referenced by interval().

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

Definition at line 267 of file MSFreqOffColumns.h.

Referenced by intervalQuant().

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

Definition at line 259 of file MSFreqOffColumns.h.

Referenced by offset().

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

Definition at line 268 of file MSFreqOffColumns.h.

Referenced by offsetQuant().

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

Definition at line 260 of file MSFreqOffColumns.h.

Referenced by spectralWindowId().

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

Definition at line 261 of file MSFreqOffColumns.h.

Referenced by time().

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

Definition at line 264 of file MSFreqOffColumns.h.

Referenced by timeMeas().

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

Definition at line 269 of file MSFreqOffColumns.h.

Referenced by timeQuant().


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