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

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

#include <MSObsColumns.h>

Public Member Functions

 MSObservationColumns (const MSObservation &msObservation)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSObservationColumns ()
 The desctructor does nothing special. More...
 
ScalarColumn< Bool > & flagRow ()
 Access to required columns. More...
 
ArrayColumn< String > & log ()
 
ScalarColumn< String > & observer ()
 
ScalarColumn< String > & project ()
 
ScalarColumn< Double > & releaseDate ()
 
ScalarQuantColumn< Double > & releaseDateQuant ()
 
ScalarMeasColumn< MEpoch > & releaseDateMeas ()
 
ArrayColumn< String > & schedule ()
 
ScalarColumn< String > & scheduleType ()
 
ScalarColumn< String > & telescopeName ()
 
ArrayColumn< Double > & timeRange ()
 
ArrayQuantColumn< Double > & timeRangeQuant ()
 
ArrayMeasColumn< MEpoch > & timeRangeMeas ()
 
const ScalarColumn< Bool > & flagRow () const
 Const access to required columns. More...
 
const ArrayColumn< String > & log () const
 
const ScalarColumn< String > & observer () const
 
const ScalarColumn< String > & project () const
 
const ScalarColumn< Double > & releaseDate () const
 
const ScalarQuantColumn< Double > & releaseDateQuant () const
 
const ScalarMeasColumn< MEpoch > & releaseDateMeas () const
 
const ArrayColumn< String > & schedule () const
 
const ScalarColumn< String > & scheduleType () const
 
const ScalarColumn< String > & telescopeName () const
 
const ArrayColumn< Double > & timeRange () const
 
const ArrayQuantColumn< Double > & timeRangeQuant () const
 
const ArrayMeasColumn< MEpoch > & timeRangeMeas () 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_RANGE & RELEASE_DATE columns. More...
 

Protected Member Functions

 MSObservationColumns ()
 
void attach (const MSObservation &msObservation)
 

Private Member Functions

 MSObservationColumns (const MSObservationColumns &)
 
MSObservationColumnsoperator= (const MSObservationColumns &)
 

Private Attributes

ScalarColumn< BoolflagRow_p
 
ArrayColumn< Stringlog_p
 
ScalarColumn< Stringobserver_p
 
ScalarColumn< Stringproject_p
 
ScalarColumn< DoublereleaseDate_p
 
ArrayColumn< Stringschedule_p
 
ScalarColumn< StringscheduleType_p
 
ScalarColumn< StringtelescopeName_p
 
ArrayColumn< DoubletimeRange_p
 
ScalarMeasColumn< MEpochreleaseDateMeas_p
 
ArrayMeasColumn< MEpochtimeRangeMeas_p
 
ScalarQuantColumn< DoublereleaseDateQuant_p
 
ArrayQuantColumn< DoubletimeRangeQuant_p
 

Detailed Description

A class to provide easy access to MSObservation columns.

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSObservationColumns stands for MeasurementSet Observation Table columns.

Synopsis

This class provides access to the columns in the MSObservation 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 80 of file MSObsColumns.h.

Constructor & Destructor Documentation

casacore::MSObservationColumns::MSObservationColumns ( const MSObservation msObservation)

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

casacore::MSObservationColumns::~MSObservationColumns ( )

The desctructor does nothing special.

casacore::MSObservationColumns::MSObservationColumns ( )
protected
casacore::MSObservationColumns::MSObservationColumns ( const MSObservationColumns )
private

Member Function Documentation

void casacore::MSObservationColumns::attach ( const MSObservation msObservation)
protected
ScalarColumn<Bool>& casacore::MSObservationColumns::flagRow ( )
inline

Access to required columns.

Definition at line 91 of file MSObsColumns.h.

References flagRow_p.

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

Const access to required columns.

Definition at line 108 of file MSObsColumns.h.

References flagRow_p.

ArrayColumn<String>& casacore::MSObservationColumns::log ( )
inline

Definition at line 92 of file MSObsColumns.h.

References log_p.

const ArrayColumn<String>& casacore::MSObservationColumns::log ( ) const
inline

Definition at line 109 of file MSObsColumns.h.

References log_p.

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

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

Definition at line 128 of file MSObsColumns.h.

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

ScalarColumn<String>& casacore::MSObservationColumns::observer ( )
inline

Definition at line 93 of file MSObsColumns.h.

References observer_p.

const ScalarColumn<String>& casacore::MSObservationColumns::observer ( ) const
inline

Definition at line 110 of file MSObsColumns.h.

References observer_p.

MSObservationColumns& casacore::MSObservationColumns::operator= ( const MSObservationColumns )
private
ScalarColumn<String>& casacore::MSObservationColumns::project ( )
inline

Definition at line 94 of file MSObsColumns.h.

References project_p.

const ScalarColumn<String>& casacore::MSObservationColumns::project ( ) const
inline

Definition at line 111 of file MSObsColumns.h.

References project_p.

ScalarColumn<Double>& casacore::MSObservationColumns::releaseDate ( )
inline

Definition at line 95 of file MSObsColumns.h.

References releaseDate_p.

const ScalarColumn<Double>& casacore::MSObservationColumns::releaseDate ( ) const
inline

Definition at line 112 of file MSObsColumns.h.

References releaseDate_p.

ScalarMeasColumn<MEpoch>& casacore::MSObservationColumns::releaseDateMeas ( )
inline

Definition at line 97 of file MSObsColumns.h.

References releaseDateMeas_p.

const ScalarMeasColumn<MEpoch>& casacore::MSObservationColumns::releaseDateMeas ( ) const
inline

Definition at line 115 of file MSObsColumns.h.

References releaseDateMeas_p.

ScalarQuantColumn<Double>& casacore::MSObservationColumns::releaseDateQuant ( )
inline

Definition at line 96 of file MSObsColumns.h.

References releaseDateQuant_p.

const ScalarQuantColumn<Double>& casacore::MSObservationColumns::releaseDateQuant ( ) const
inline

Definition at line 113 of file MSObsColumns.h.

References releaseDateQuant_p.

ArrayColumn<String>& casacore::MSObservationColumns::schedule ( )
inline

Definition at line 98 of file MSObsColumns.h.

References schedule_p.

const ArrayColumn<String>& casacore::MSObservationColumns::schedule ( ) const
inline

Definition at line 117 of file MSObsColumns.h.

References schedule_p.

ScalarColumn<String>& casacore::MSObservationColumns::scheduleType ( )
inline

Definition at line 99 of file MSObsColumns.h.

References scheduleType_p.

const ScalarColumn<String>& casacore::MSObservationColumns::scheduleType ( ) const
inline

Definition at line 118 of file MSObsColumns.h.

References scheduleType_p.

void casacore::MSObservationColumns::setEpochRef ( MEpoch::Types  ref,
Bool  tableMustBeEmpty = True 
)

set the epoch type for the TIME_RANGE & RELEASE_DATE columns.


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<String>& casacore::MSObservationColumns::telescopeName ( )
inline

Definition at line 100 of file MSObsColumns.h.

References telescopeName_p.

const ScalarColumn<String>& casacore::MSObservationColumns::telescopeName ( ) const
inline

Definition at line 119 of file MSObsColumns.h.

References telescopeName_p.

ArrayColumn<Double>& casacore::MSObservationColumns::timeRange ( )
inline

Definition at line 101 of file MSObsColumns.h.

References timeRange_p.

const ArrayColumn<Double>& casacore::MSObservationColumns::timeRange ( ) const
inline

Definition at line 120 of file MSObsColumns.h.

References timeRange_p.

ArrayMeasColumn<MEpoch>& casacore::MSObservationColumns::timeRangeMeas ( )
inline

Definition at line 103 of file MSObsColumns.h.

References timeRangeMeas_p.

const ArrayMeasColumn<MEpoch>& casacore::MSObservationColumns::timeRangeMeas ( ) const
inline

Definition at line 123 of file MSObsColumns.h.

References timeRangeMeas_p.

ArrayQuantColumn<Double>& casacore::MSObservationColumns::timeRangeQuant ( )
inline

Definition at line 102 of file MSObsColumns.h.

References timeRangeQuant_p.

const ArrayQuantColumn<Double>& casacore::MSObservationColumns::timeRangeQuant ( ) const
inline

Definition at line 121 of file MSObsColumns.h.

References timeRangeQuant_p.

Member Data Documentation

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

Definition at line 156 of file MSObsColumns.h.

Referenced by flagRow(), and nrow().

ArrayColumn<String> casacore::MSObservationColumns::log_p
private

Definition at line 157 of file MSObsColumns.h.

Referenced by log().

ScalarColumn<String> casacore::MSObservationColumns::observer_p
private

Definition at line 158 of file MSObsColumns.h.

Referenced by observer().

ScalarColumn<String> casacore::MSObservationColumns::project_p
private

Definition at line 159 of file MSObsColumns.h.

Referenced by project().

ScalarColumn<Double> casacore::MSObservationColumns::releaseDate_p
private

Definition at line 160 of file MSObsColumns.h.

Referenced by releaseDate().

ScalarMeasColumn<MEpoch> casacore::MSObservationColumns::releaseDateMeas_p
private

Definition at line 167 of file MSObsColumns.h.

Referenced by releaseDateMeas().

ScalarQuantColumn<Double> casacore::MSObservationColumns::releaseDateQuant_p
private

Definition at line 171 of file MSObsColumns.h.

Referenced by releaseDateQuant().

ArrayColumn<String> casacore::MSObservationColumns::schedule_p
private

Definition at line 161 of file MSObsColumns.h.

Referenced by schedule().

ScalarColumn<String> casacore::MSObservationColumns::scheduleType_p
private

Definition at line 162 of file MSObsColumns.h.

Referenced by scheduleType().

ScalarColumn<String> casacore::MSObservationColumns::telescopeName_p
private

Definition at line 163 of file MSObsColumns.h.

Referenced by telescopeName().

ArrayColumn<Double> casacore::MSObservationColumns::timeRange_p
private

Definition at line 164 of file MSObsColumns.h.

Referenced by timeRange().

ArrayMeasColumn<MEpoch> casacore::MSObservationColumns::timeRangeMeas_p
private

Definition at line 168 of file MSObsColumns.h.

Referenced by timeRangeMeas().

ArrayQuantColumn<Double> casacore::MSObservationColumns::timeRangeQuant_p
private

Definition at line 172 of file MSObsColumns.h.

Referenced by timeRangeQuant().


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