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

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

#include <MSWeatherColumns.h>

Public Member Functions

 MSWeatherColumns (const MSWeather &msWeather)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSWeatherColumns ()
 The destructor does nothing special. More...
 
Bool isNull () const
 Is this object defined? (MSWeather table is optional) More...
 
ScalarColumn< Int > & antennaId ()
 Access to required columns. More...
 
ScalarColumn< Double > & interval ()
 
ScalarQuantColumn< Double > & intervalQuant ()
 
ScalarColumn< Double > & time ()
 
ScalarQuantColumn< Double > & timeQuant ()
 
ScalarMeasColumn< MEpoch > & timeMeas ()
 
ScalarColumn< Float > & dewPoint ()
 Access to optional columns. More...
 
ScalarQuantColumn< Float > & dewPointQuant ()
 
ScalarColumn< Bool > & dewPointFlag ()
 
ScalarColumn< Float > & H2O ()
 
ScalarQuantColumn< Float > & H2OQuant ()
 
ScalarColumn< Bool > & H2OFlag ()
 
ScalarColumn< Float > & ionosElectron ()
 
ScalarQuantColumn< Float > & ionosElectronQuant ()
 
ScalarColumn< Bool > & ionosElectronFlag ()
 
ScalarColumn< Float > & pressure ()
 
ScalarQuantColumn< Float > & pressureQuant ()
 
ScalarColumn< Bool > & pressureFlag ()
 
ScalarColumn< Float > & relHumidity ()
 
ScalarColumn< Bool > & relHumidityFlag ()
 
ScalarColumn< Float > & temperature ()
 
ScalarQuantColumn< Float > & temperatureQuant ()
 
ScalarColumn< Bool > & temperatureFlag ()
 
ScalarColumn< Float > & windDirection ()
 
ScalarQuantColumn< Float > & windDirectionQuant ()
 
ScalarColumn< Bool > & windDirectionFlag ()
 
ScalarColumn< Float > & windSpeed ()
 
ScalarQuantColumn< Float > & windSpeedQuant ()
 
ScalarColumn< Bool > & windSpeedFlag ()
 
const ScalarColumn< Int > & antennaId () const
 Const access to columns. More...
 
const ScalarColumn< Double > & interval () const
 
const ScalarQuantColumn< Double > & intervalQuant () const
 
const ScalarColumn< Double > & time () const
 
const ScalarQuantColumn< Double > & timeQuant () const
 
const ScalarMeasColumn< MEpoch > & timeMeas () const
 
const ScalarColumn< Float > & dewPoint () const
 Access to optional columns. More...
 
const ScalarQuantColumn< Float > & dewPointQuant () const
 
const ScalarColumn< Bool > & dewPointFlag () const
 
const ScalarColumn< Float > & H2O () const
 
const ScalarColumn< Bool > & H2OFlag () const
 
const ScalarQuantColumn< Float > & H2OQuant () const
 
const ScalarColumn< Float > & ionosElectron () const
 
const ScalarQuantColumn< Float > & ionosElectronQuant () const
 
const ScalarColumn< Bool > & ionosElectronFlag () const
 
const ScalarColumn< Float > & pressure () const
 
const ScalarQuantColumn< Float > & pressureQuant () const
 
const ScalarColumn< Bool > & pressureFlag () const
 
const ScalarColumn< Float > & relHumidity () const
 
const ScalarColumn< Bool > & relHumidityFlag () const
 
const ScalarColumn< Float > & temperature () const
 
const ScalarQuantColumn< Float > & temperatureQuant () const
 
const ScalarColumn< Bool > & temperatureFlag () const
 
const ScalarColumn< Float > & windDirection () const
 
const ScalarQuantColumn< Float > & windDirectionQuant () const
 
const ScalarColumn< Bool > & windDirectionFlag () const
 
const ScalarColumn< Float > & windSpeed () const
 
const ScalarQuantColumn< Float > & windSpeedQuant () const
 
const ScalarColumn< Bool > & windSpeedFlag () 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

 MSWeatherColumns ()
 
void attach (const MSWeather &msWeather)
 

Private Member Functions

 MSWeatherColumns (const MSWeatherColumns &)
 
MSWeatherColumnsoperator= (const MSWeatherColumns &)
 
void attachOptionalCols (const MSWeather &msWeather)
 

Private Attributes

Bool isNull_p
 
ScalarColumn< IntantennaId_p
 
ScalarColumn< Doubleinterval_p
 
ScalarColumn< Doubletime_p
 
ScalarColumn< FloatdewPoint_p
 
ScalarColumn< BooldewPointFlag_p
 
ScalarColumn< FloatH2O_p
 
ScalarColumn< BoolH2OFlag_p
 
ScalarColumn< FloationosElectron_p
 
ScalarColumn< BoolionosElectronFlag_p
 
ScalarColumn< Floatpressure_p
 
ScalarColumn< BoolpressureFlag_p
 
ScalarColumn< FloatrelHumidity_p
 
ScalarColumn< BoolrelHumidityFlag_p
 
ScalarColumn< Floattemperature_p
 
ScalarColumn< BooltemperatureFlag_p
 
ScalarColumn< FloatwindDirection_p
 
ScalarColumn< BoolwindDirectionFlag_p
 
ScalarColumn< FloatwindSpeed_p
 
ScalarColumn< BoolwindSpeedFlag_p
 
ScalarMeasColumn< MEpochtimeMeas_p
 
ScalarQuantColumn< DoubleintervalQuant_p
 
ScalarQuantColumn< DoubletimeQuant_p
 
ScalarQuantColumn< FloatdewPointQuant_p
 
ScalarQuantColumn< FloatH2OQuant_p
 
ScalarQuantColumn< FloationosElectronQuant_p
 
ScalarQuantColumn< FloatpressureQuant_p
 
ScalarQuantColumn< FloattemperatureQuant_p
 
ScalarQuantColumn< FloatwindDirectionQuant_p
 
ScalarQuantColumn< FloatwindSpeedQuant_p
 

Detailed Description

A class to provide easy access to MSWeather columns.

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSWeatherColumns stands for MeasurementSet Weather Table columns.

Synopsis

This class provides access to the columns in the MSWeather 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 MSWeatherColumns.h.

Constructor & Destructor Documentation

casacore::MSWeatherColumns::MSWeatherColumns ( const MSWeather msWeather)

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

casacore::MSWeatherColumns::~MSWeatherColumns ( )

The destructor does nothing special.

casacore::MSWeatherColumns::MSWeatherColumns ( )
protected
casacore::MSWeatherColumns::MSWeatherColumns ( const MSWeatherColumns )
private

Member Function Documentation

ScalarColumn<Int>& casacore::MSWeatherColumns::antennaId ( )
inline

Access to required columns.

Definition at line 89 of file MSWeatherColumns.h.

References antennaId_p.

const ScalarColumn<Int>& casacore::MSWeatherColumns::antennaId ( ) const
inline

Const access to columns.

Definition at line 126 of file MSWeatherColumns.h.

References antennaId_p.

void casacore::MSWeatherColumns::attach ( const MSWeather msWeather)
protected
void casacore::MSWeatherColumns::attachOptionalCols ( const MSWeather msWeather)
private
ScalarColumn<Float>& casacore::MSWeatherColumns::dewPoint ( )
inline

Access to optional columns.

Definition at line 99 of file MSWeatherColumns.h.

References dewPoint_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::dewPoint ( ) const
inline

Access to optional columns.

Definition at line 137 of file MSWeatherColumns.h.

References dewPoint_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::dewPointFlag ( )
inline

Definition at line 101 of file MSWeatherColumns.h.

References dewPointFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::dewPointFlag ( ) const
inline

Definition at line 140 of file MSWeatherColumns.h.

References dewPointFlag_p.

ScalarQuantColumn<Float>& casacore::MSWeatherColumns::dewPointQuant ( )
inline

Definition at line 100 of file MSWeatherColumns.h.

References dewPointQuant_p.

const ScalarQuantColumn<Float>& casacore::MSWeatherColumns::dewPointQuant ( ) const
inline

Definition at line 138 of file MSWeatherColumns.h.

References dewPointQuant_p.

ScalarColumn<Float>& casacore::MSWeatherColumns::H2O ( )
inline

Definition at line 102 of file MSWeatherColumns.h.

References H2O_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::H2O ( ) const
inline

Definition at line 141 of file MSWeatherColumns.h.

References H2O_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::H2OFlag ( )
inline

Definition at line 104 of file MSWeatherColumns.h.

References H2OFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::H2OFlag ( ) const
inline

Definition at line 142 of file MSWeatherColumns.h.

References H2OFlag_p.

ScalarQuantColumn<Float>& casacore::MSWeatherColumns::H2OQuant ( )
inline

Definition at line 103 of file MSWeatherColumns.h.

References H2OQuant_p.

const ScalarQuantColumn<Float>& casacore::MSWeatherColumns::H2OQuant ( ) const
inline

Definition at line 143 of file MSWeatherColumns.h.

References H2OQuant_p.

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

Definition at line 90 of file MSWeatherColumns.h.

References interval_p.

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

Definition at line 127 of file MSWeatherColumns.h.

References interval_p.

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

Definition at line 91 of file MSWeatherColumns.h.

References intervalQuant_p.

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

Definition at line 128 of file MSWeatherColumns.h.

References intervalQuant_p.

ScalarColumn<Float>& casacore::MSWeatherColumns::ionosElectron ( )
inline

Definition at line 105 of file MSWeatherColumns.h.

References ionosElectron_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::ionosElectron ( ) const
inline

Definition at line 144 of file MSWeatherColumns.h.

References ionosElectron_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::ionosElectronFlag ( )
inline

Definition at line 107 of file MSWeatherColumns.h.

References ionosElectronFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::ionosElectronFlag ( ) const
inline

Definition at line 147 of file MSWeatherColumns.h.

References ionosElectronFlag_p.

ScalarQuantColumn<Float>& casacore::MSWeatherColumns::ionosElectronQuant ( )
inline

Definition at line 106 of file MSWeatherColumns.h.

References ionosElectronQuant_p.

const ScalarQuantColumn<Float>& casacore::MSWeatherColumns::ionosElectronQuant ( ) const
inline

Definition at line 145 of file MSWeatherColumns.h.

References ionosElectronQuant_p.

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

Is this object defined? (MSWeather table is optional)

Definition at line 85 of file MSWeatherColumns.h.

References isNull_p.

Referenced by nrow().

rownr_t casacore::MSWeatherColumns::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 174 of file MSWeatherColumns.h.

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

MSWeatherColumns& casacore::MSWeatherColumns::operator= ( const MSWeatherColumns )
private
ScalarColumn<Float>& casacore::MSWeatherColumns::pressure ( )
inline

Definition at line 108 of file MSWeatherColumns.h.

References pressure_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::pressure ( ) const
inline

Definition at line 149 of file MSWeatherColumns.h.

References pressure_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::pressureFlag ( )
inline

Definition at line 110 of file MSWeatherColumns.h.

References pressureFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::pressureFlag ( ) const
inline

Definition at line 152 of file MSWeatherColumns.h.

References pressureFlag_p.

ScalarQuantColumn<Float>& casacore::MSWeatherColumns::pressureQuant ( )
inline

Definition at line 109 of file MSWeatherColumns.h.

References pressureQuant_p.

const ScalarQuantColumn<Float>& casacore::MSWeatherColumns::pressureQuant ( ) const
inline

Definition at line 150 of file MSWeatherColumns.h.

References pressureQuant_p.

ScalarColumn<Float>& casacore::MSWeatherColumns::relHumidity ( )
inline

Definition at line 111 of file MSWeatherColumns.h.

References relHumidity_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::relHumidity ( ) const
inline

Definition at line 153 of file MSWeatherColumns.h.

References relHumidity_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::relHumidityFlag ( )
inline

Definition at line 112 of file MSWeatherColumns.h.

References relHumidityFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::relHumidityFlag ( ) const
inline

Definition at line 154 of file MSWeatherColumns.h.

References relHumidityFlag_p.

void casacore::MSWeatherColumns::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<Float>& casacore::MSWeatherColumns::temperature ( )
inline

Definition at line 113 of file MSWeatherColumns.h.

References temperature_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::temperature ( ) const
inline

Definition at line 156 of file MSWeatherColumns.h.

References temperature_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::temperatureFlag ( )
inline

Definition at line 115 of file MSWeatherColumns.h.

References temperatureFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::temperatureFlag ( ) const
inline

Definition at line 159 of file MSWeatherColumns.h.

References temperatureFlag_p.

ScalarQuantColumn<Float>& casacore::MSWeatherColumns::temperatureQuant ( )
inline

Definition at line 114 of file MSWeatherColumns.h.

References temperatureQuant_p.

const ScalarQuantColumn<Float>& casacore::MSWeatherColumns::temperatureQuant ( ) const
inline

Definition at line 157 of file MSWeatherColumns.h.

References temperatureQuant_p.

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

Definition at line 92 of file MSWeatherColumns.h.

References time_p.

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

Definition at line 130 of file MSWeatherColumns.h.

References time_p.

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

Definition at line 94 of file MSWeatherColumns.h.

References timeMeas_p.

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

Definition at line 132 of file MSWeatherColumns.h.

References timeMeas_p.

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

Definition at line 93 of file MSWeatherColumns.h.

References timeQuant_p.

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

Definition at line 131 of file MSWeatherColumns.h.

References timeQuant_p.

ScalarColumn<Float>& casacore::MSWeatherColumns::windDirection ( )
inline

Definition at line 116 of file MSWeatherColumns.h.

References windDirection_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::windDirection ( ) const
inline

Definition at line 161 of file MSWeatherColumns.h.

References windDirection_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::windDirectionFlag ( )
inline

Definition at line 118 of file MSWeatherColumns.h.

References windDirectionFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::windDirectionFlag ( ) const
inline

Definition at line 164 of file MSWeatherColumns.h.

References windDirectionFlag_p.

ScalarQuantColumn<Float>& casacore::MSWeatherColumns::windDirectionQuant ( )
inline

Definition at line 117 of file MSWeatherColumns.h.

References windDirectionQuant_p.

const ScalarQuantColumn<Float>& casacore::MSWeatherColumns::windDirectionQuant ( ) const
inline

Definition at line 162 of file MSWeatherColumns.h.

References windDirectionQuant_p.

ScalarColumn<Float>& casacore::MSWeatherColumns::windSpeed ( )
inline

Definition at line 119 of file MSWeatherColumns.h.

References windSpeed_p.

const ScalarColumn<Float>& casacore::MSWeatherColumns::windSpeed ( ) const
inline

Definition at line 166 of file MSWeatherColumns.h.

References windSpeed_p.

ScalarColumn<Bool>& casacore::MSWeatherColumns::windSpeedFlag ( )
inline

Definition at line 121 of file MSWeatherColumns.h.

References windSpeedFlag_p.

const ScalarColumn<Bool>& casacore::MSWeatherColumns::windSpeedFlag ( ) const
inline

Definition at line 169 of file MSWeatherColumns.h.

References windSpeedFlag_p.

ScalarQuantColumn<Float>& casacore::MSWeatherColumns::windSpeedQuant ( )
inline

Definition at line 120 of file MSWeatherColumns.h.

References windSpeedQuant_p.

const ScalarQuantColumn<Float>& casacore::MSWeatherColumns::windSpeedQuant ( ) const
inline

Definition at line 167 of file MSWeatherColumns.h.

References windSpeedQuant_p.

Member Data Documentation

ScalarColumn<Int> casacore::MSWeatherColumns::antennaId_p
private

Definition at line 208 of file MSWeatherColumns.h.

Referenced by antennaId(), and nrow().

ScalarColumn<Float> casacore::MSWeatherColumns::dewPoint_p
private

Definition at line 212 of file MSWeatherColumns.h.

Referenced by dewPoint().

ScalarColumn<Bool> casacore::MSWeatherColumns::dewPointFlag_p
private

Definition at line 213 of file MSWeatherColumns.h.

Referenced by dewPointFlag().

ScalarQuantColumn<Float> casacore::MSWeatherColumns::dewPointQuant_p
private

Definition at line 236 of file MSWeatherColumns.h.

Referenced by dewPointQuant().

ScalarColumn<Float> casacore::MSWeatherColumns::H2O_p
private

Definition at line 214 of file MSWeatherColumns.h.

Referenced by H2O().

ScalarColumn<Bool> casacore::MSWeatherColumns::H2OFlag_p
private

Definition at line 215 of file MSWeatherColumns.h.

Referenced by H2OFlag().

ScalarQuantColumn<Float> casacore::MSWeatherColumns::H2OQuant_p
private

Definition at line 237 of file MSWeatherColumns.h.

Referenced by H2OQuant().

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

Definition at line 209 of file MSWeatherColumns.h.

Referenced by interval().

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

Definition at line 233 of file MSWeatherColumns.h.

Referenced by intervalQuant().

ScalarColumn<Float> casacore::MSWeatherColumns::ionosElectron_p
private

Definition at line 216 of file MSWeatherColumns.h.

Referenced by ionosElectron().

ScalarColumn<Bool> casacore::MSWeatherColumns::ionosElectronFlag_p
private

Definition at line 217 of file MSWeatherColumns.h.

Referenced by ionosElectronFlag().

ScalarQuantColumn<Float> casacore::MSWeatherColumns::ionosElectronQuant_p
private

Definition at line 238 of file MSWeatherColumns.h.

Referenced by ionosElectronQuant().

Bool casacore::MSWeatherColumns::isNull_p
private

Definition at line 205 of file MSWeatherColumns.h.

Referenced by isNull().

ScalarColumn<Float> casacore::MSWeatherColumns::pressure_p
private

Definition at line 218 of file MSWeatherColumns.h.

Referenced by pressure().

ScalarColumn<Bool> casacore::MSWeatherColumns::pressureFlag_p
private

Definition at line 219 of file MSWeatherColumns.h.

Referenced by pressureFlag().

ScalarQuantColumn<Float> casacore::MSWeatherColumns::pressureQuant_p
private

Definition at line 239 of file MSWeatherColumns.h.

Referenced by pressureQuant().

ScalarColumn<Float> casacore::MSWeatherColumns::relHumidity_p
private

Definition at line 220 of file MSWeatherColumns.h.

Referenced by relHumidity().

ScalarColumn<Bool> casacore::MSWeatherColumns::relHumidityFlag_p
private

Definition at line 221 of file MSWeatherColumns.h.

Referenced by relHumidityFlag().

ScalarColumn<Float> casacore::MSWeatherColumns::temperature_p
private

Definition at line 222 of file MSWeatherColumns.h.

Referenced by temperature().

ScalarColumn<Bool> casacore::MSWeatherColumns::temperatureFlag_p
private

Definition at line 223 of file MSWeatherColumns.h.

Referenced by temperatureFlag().

ScalarQuantColumn<Float> casacore::MSWeatherColumns::temperatureQuant_p
private

Definition at line 240 of file MSWeatherColumns.h.

Referenced by temperatureQuant().

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

Definition at line 210 of file MSWeatherColumns.h.

Referenced by time().

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

Definition at line 230 of file MSWeatherColumns.h.

Referenced by timeMeas().

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

Definition at line 234 of file MSWeatherColumns.h.

Referenced by timeQuant().

ScalarColumn<Float> casacore::MSWeatherColumns::windDirection_p
private

Definition at line 224 of file MSWeatherColumns.h.

Referenced by windDirection().

ScalarColumn<Bool> casacore::MSWeatherColumns::windDirectionFlag_p
private

Definition at line 225 of file MSWeatherColumns.h.

Referenced by windDirectionFlag().

ScalarQuantColumn<Float> casacore::MSWeatherColumns::windDirectionQuant_p
private

Definition at line 241 of file MSWeatherColumns.h.

Referenced by windDirectionQuant().

ScalarColumn<Float> casacore::MSWeatherColumns::windSpeed_p
private

Definition at line 226 of file MSWeatherColumns.h.

Referenced by windSpeed().

ScalarColumn<Bool> casacore::MSWeatherColumns::windSpeedFlag_p
private

Definition at line 227 of file MSWeatherColumns.h.

Referenced by windSpeedFlag().

ScalarQuantColumn<Float> casacore::MSWeatherColumns::windSpeedQuant_p
private

Definition at line 242 of file MSWeatherColumns.h.

Referenced by windSpeedQuant().


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