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

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

#include <MSFlagCmdColumns.h>

Public Member Functions

 MSFlagCmdColumns (const MSFlagCmd &msFlagCmd)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSFlagCmdColumns ()
 The destructor does nothing special. More...
 
ScalarColumn< Bool > & applied ()
 Access to required columns. More...
 
ScalarColumn< String > & command ()
 
ScalarColumn< Double > & interval ()
 
ScalarQuantColumn< Double > & intervalQuant ()
 
ScalarColumn< Int > & level ()
 
ScalarColumn< String > & reason ()
 
ScalarColumn< Int > & severity ()
 
ScalarColumn< Double > & time ()
 
ScalarQuantColumn< Double > & timeQuant ()
 
ScalarMeasColumn< MEpoch > & timeMeas ()
 
ScalarColumn< String > & type ()
 
const ScalarColumn< Bool > & applied () const
 Const access to required columns. More...
 
const ScalarColumn< String > & command () const
 
const ScalarColumn< Double > & interval () const
 
const ScalarQuantColumn< Double > & intervalQuant () const
 
const ScalarColumn< Int > & level () const
 
const ScalarColumn< String > & reason () const
 
const ScalarColumn< Int > & severity () const
 
const ScalarColumn< Double > & time () const
 
const ScalarQuantColumn< Double > & timeQuant () const
 
const ScalarMeasColumn< MEpoch > & timeMeas () const
 
const ScalarColumn< String > & type () 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 FLAG_CMD column. More...
 

Protected Member Functions

 MSFlagCmdColumns ()
 
void attach (const MSFlagCmd &msFlagCmd)
 

Private Member Functions

 MSFlagCmdColumns (const MSFlagCmdColumns &)
 
MSFlagCmdColumnsoperator= (const MSFlagCmdColumns &)
 

Private Attributes

ScalarColumn< Boolapplied_p
 
ScalarColumn< Stringcommand_p
 
ScalarColumn< Doubleinterval_p
 
ScalarColumn< Intlevel_p
 
ScalarColumn< Stringreason_p
 
ScalarColumn< Intseverity_p
 
ScalarColumn< Doubletime_p
 
ScalarColumn< Stringtype_p
 
ScalarMeasColumn< MEpochtimeMeas_p
 
ScalarQuantColumn< DoubleintervalQuant_p
 
ScalarQuantColumn< DoubletimeQuant_p
 

Detailed Description

A class to provide easy access to MSFlagCmd columns.

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSFlagCmdColumns stands for MeasurementSet FlagCmd Table columns.

Synopsis

This class provides access to the columns in the MSFlagCmd Table, it does the declaration of all the ScalarColumns 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 MSFlagCmdColumns.h.

Constructor & Destructor Documentation

casacore::MSFlagCmdColumns::MSFlagCmdColumns ( const MSFlagCmd msFlagCmd)

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

casacore::MSFlagCmdColumns::~MSFlagCmdColumns ( )

The destructor does nothing special.

casacore::MSFlagCmdColumns::MSFlagCmdColumns ( )
protected
casacore::MSFlagCmdColumns::MSFlagCmdColumns ( const MSFlagCmdColumns )
private

Member Function Documentation

ScalarColumn<Bool>& casacore::MSFlagCmdColumns::applied ( )
inline

Access to required columns.

Definition at line 86 of file MSFlagCmdColumns.h.

References applied_p.

const ScalarColumn<Bool>& casacore::MSFlagCmdColumns::applied ( ) const
inline

Const access to required columns.

Definition at line 101 of file MSFlagCmdColumns.h.

References applied_p.

void casacore::MSFlagCmdColumns::attach ( const MSFlagCmd msFlagCmd)
protected
ScalarColumn<String>& casacore::MSFlagCmdColumns::command ( )
inline

Definition at line 87 of file MSFlagCmdColumns.h.

References command_p.

const ScalarColumn<String>& casacore::MSFlagCmdColumns::command ( ) const
inline

Definition at line 102 of file MSFlagCmdColumns.h.

References command_p.

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

Definition at line 88 of file MSFlagCmdColumns.h.

References interval_p.

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

Definition at line 103 of file MSFlagCmdColumns.h.

References interval_p.

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

Definition at line 89 of file MSFlagCmdColumns.h.

References intervalQuant_p.

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

Definition at line 104 of file MSFlagCmdColumns.h.

References intervalQuant_p.

ScalarColumn<Int>& casacore::MSFlagCmdColumns::level ( )
inline

Definition at line 90 of file MSFlagCmdColumns.h.

References level_p.

const ScalarColumn<Int>& casacore::MSFlagCmdColumns::level ( ) const
inline

Definition at line 105 of file MSFlagCmdColumns.h.

References level_p.

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

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

Definition at line 115 of file MSFlagCmdColumns.h.

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

MSFlagCmdColumns& casacore::MSFlagCmdColumns::operator= ( const MSFlagCmdColumns )
private
ScalarColumn<String>& casacore::MSFlagCmdColumns::reason ( )
inline

Definition at line 91 of file MSFlagCmdColumns.h.

References reason_p.

const ScalarColumn<String>& casacore::MSFlagCmdColumns::reason ( ) const
inline

Definition at line 106 of file MSFlagCmdColumns.h.

References reason_p.

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

set the epoch type for the FLAG_CMD 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::MSFlagCmdColumns::severity ( )
inline

Definition at line 92 of file MSFlagCmdColumns.h.

References severity_p.

const ScalarColumn<Int>& casacore::MSFlagCmdColumns::severity ( ) const
inline

Definition at line 107 of file MSFlagCmdColumns.h.

References severity_p.

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

Definition at line 93 of file MSFlagCmdColumns.h.

References time_p.

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

Definition at line 108 of file MSFlagCmdColumns.h.

References time_p.

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

Definition at line 95 of file MSFlagCmdColumns.h.

References timeMeas_p.

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

Definition at line 110 of file MSFlagCmdColumns.h.

References timeMeas_p.

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

Definition at line 94 of file MSFlagCmdColumns.h.

References timeQuant_p.

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

Definition at line 109 of file MSFlagCmdColumns.h.

References timeQuant_p.

ScalarColumn<String>& casacore::MSFlagCmdColumns::type ( )
inline

Definition at line 96 of file MSFlagCmdColumns.h.

References type_p.

const ScalarColumn<String>& casacore::MSFlagCmdColumns::type ( ) const
inline

Definition at line 111 of file MSFlagCmdColumns.h.

References type_p.

Member Data Documentation

ScalarColumn<Bool> casacore::MSFlagCmdColumns::applied_p
private

Definition at line 143 of file MSFlagCmdColumns.h.

Referenced by applied(), and nrow().

ScalarColumn<String> casacore::MSFlagCmdColumns::command_p
private

Definition at line 144 of file MSFlagCmdColumns.h.

Referenced by command().

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

Definition at line 145 of file MSFlagCmdColumns.h.

Referenced by interval().

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

Definition at line 156 of file MSFlagCmdColumns.h.

Referenced by intervalQuant().

ScalarColumn<Int> casacore::MSFlagCmdColumns::level_p
private

Definition at line 146 of file MSFlagCmdColumns.h.

Referenced by level().

ScalarColumn<String> casacore::MSFlagCmdColumns::reason_p
private

Definition at line 147 of file MSFlagCmdColumns.h.

Referenced by reason().

ScalarColumn<Int> casacore::MSFlagCmdColumns::severity_p
private

Definition at line 148 of file MSFlagCmdColumns.h.

Referenced by severity().

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

Definition at line 149 of file MSFlagCmdColumns.h.

Referenced by time().

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

Definition at line 153 of file MSFlagCmdColumns.h.

Referenced by timeMeas().

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

Definition at line 157 of file MSFlagCmdColumns.h.

Referenced by timeQuant().

ScalarColumn<String> casacore::MSFlagCmdColumns::type_p
private

Definition at line 150 of file MSFlagCmdColumns.h.

Referenced by type().


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