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

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

#include <MSObsColumns.h>

Inheritance diagram for casacore::MSObservationColumns:
casacore::ROMSObservationColumns

Public Member Functions

 MSObservationColumns (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 ()
 Read-write 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 ROScalarColumn< Bool > & flagRow () const
 Read-only access to required columns. More...
 
const ROArrayColumn< String > & log () const
 
const ROScalarColumn< String > & observer () const
 
const ROScalarColumn< String > & project () const
 
const ROScalarColumn< Double > & releaseDate () const
 
const ROScalarQuantColumn
< Double > & 
releaseDateQuant () const
 
const ROScalarMeasColumn
< MEpoch > & 
releaseDateMeas () const
 
const ROArrayColumn< String > & schedule () const
 
const ROScalarColumn< String > & scheduleType () const
 
const ROScalarColumn< String > & telescopeName () const
 
const ROArrayColumn< Double > & timeRange () const
 
const ROArrayQuantColumn
< Double > & 
timeRangeQuant () const
 
const ROArrayMeasColumn< MEpoch > & timeRangeMeas () const
 
void setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True)
 set the epoch type for the TIME_RANGE & RELEASE_DATE columns. More...
 
- Public Member Functions inherited from casacore::ROMSObservationColumns
 ROMSObservationColumns (const MSObservation &msObservation)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~ROMSObservationColumns ()
 The destructor does nothing special. More...
 
const ROScalarColumn< Bool > & flagRow () const
 Access to required columns. More...
 
const ROArrayColumn< String > & log () const
 
const ROScalarColumn< String > & observer () const
 
const ROScalarColumn< String > & project () const
 
const ROScalarColumn< Double > & releaseDate () const
 
const ROScalarQuantColumn
< Double > & 
releaseDateQuant () const
 
const ROScalarMeasColumn
< MEpoch > & 
releaseDateMeas () const
 
const ROArrayColumn< String > & schedule () const
 
const ROScalarColumn< String > & scheduleType () const
 
const ROScalarColumn< String > & telescopeName () const
 
const ROArrayColumn< Double > & timeRange () const
 
const ROArrayQuantColumn
< Double > & 
timeRangeQuant () const
 
const ROArrayMeasColumn< MEpoch > & timeRangeMeas () const
 
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns. More...
 

Protected Member Functions

 MSObservationColumns ()
 
void attach (MSObservation &msObservation)
 
- Protected Member Functions inherited from casacore::ROMSObservationColumns
 ROMSObservationColumns ()
 
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 read-write 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 181 of file MSObsColumns.h.

Constructor & Destructor Documentation

casacore::MSObservationColumns::MSObservationColumns ( 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 ( MSObservation msObservation)
protected
ScalarColumn<Bool>& casacore::MSObservationColumns::flagRow ( )
inline

Read-write access to required columns.

Definition at line 192 of file MSObsColumns.h.

References flagRow_p.

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

Read-only access to required columns.

Definition at line 209 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::flagRow().

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

Definition at line 193 of file MSObsColumns.h.

References log_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 211 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::log().

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

Definition at line 194 of file MSObsColumns.h.

References observer_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 213 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::observer().

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

Definition at line 195 of file MSObsColumns.h.

References project_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 215 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::project().

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

Definition at line 196 of file MSObsColumns.h.

References releaseDate_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 217 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::releaseDate().

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

Definition at line 198 of file MSObsColumns.h.

References releaseDateMeas_p.

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

Definition at line 197 of file MSObsColumns.h.

References releaseDateQuant_p.

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

Definition at line 199 of file MSObsColumns.h.

References schedule_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 223 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::schedule().

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

Definition at line 200 of file MSObsColumns.h.

References scheduleType_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 225 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::scheduleType().

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 201 of file MSObsColumns.h.

References telescopeName_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 227 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::telescopeName().

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

Definition at line 202 of file MSObsColumns.h.

References timeRange_p.

Referenced by casa::sdfiller::ObservationRecord::fill().

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

Definition at line 229 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::timeRange().

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

Definition at line 204 of file MSObsColumns.h.

References timeRangeMeas_p.

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

Definition at line 233 of file MSObsColumns.h.

References casacore::ROMSObservationColumns::timeRangeMeas().

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

Definition at line 203 of file MSObsColumns.h.

References timeRangeQuant_p.

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

Member Data Documentation

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

Definition at line 263 of file MSObsColumns.h.

Referenced by flagRow().

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

Definition at line 264 of file MSObsColumns.h.

Referenced by log().

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

Definition at line 265 of file MSObsColumns.h.

Referenced by observer().

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

Definition at line 266 of file MSObsColumns.h.

Referenced by project().

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

Definition at line 267 of file MSObsColumns.h.

Referenced by releaseDate().

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

Definition at line 274 of file MSObsColumns.h.

Referenced by releaseDateMeas().

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

Definition at line 278 of file MSObsColumns.h.

Referenced by releaseDateQuant().

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

Definition at line 268 of file MSObsColumns.h.

Referenced by schedule().

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

Definition at line 269 of file MSObsColumns.h.

Referenced by scheduleType().

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

Definition at line 270 of file MSObsColumns.h.

Referenced by telescopeName().

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

Definition at line 271 of file MSObsColumns.h.

Referenced by timeRange().

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

Definition at line 275 of file MSObsColumns.h.

Referenced by timeRangeMeas().

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

Definition at line 279 of file MSObsColumns.h.

Referenced by timeRangeQuant().


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