casacore
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::MSFlagCmdColumns Class Reference

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

◆ MSFlagCmdColumns() [1/3]

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

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

◆ ~MSFlagCmdColumns()

casacore::MSFlagCmdColumns::~MSFlagCmdColumns ( )

The destructor does nothing special.

◆ MSFlagCmdColumns() [2/3]

casacore::MSFlagCmdColumns::MSFlagCmdColumns ( )
protected

◆ MSFlagCmdColumns() [3/3]

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

Member Function Documentation

◆ applied() [1/2]

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

Access to required columns.

Definition at line 86 of file MSFlagCmdColumns.h.

References applied_p.

◆ applied() [2/2]

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

Const access to required columns.

Definition at line 101 of file MSFlagCmdColumns.h.

References applied_p.

◆ attach()

void casacore::MSFlagCmdColumns::attach ( const MSFlagCmd msFlagCmd)
protected

◆ command() [1/2]

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

Definition at line 87 of file MSFlagCmdColumns.h.

References command_p.

◆ command() [2/2]

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

Definition at line 102 of file MSFlagCmdColumns.h.

References command_p.

◆ interval() [1/2]

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

Definition at line 88 of file MSFlagCmdColumns.h.

References interval_p.

◆ interval() [2/2]

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

Definition at line 103 of file MSFlagCmdColumns.h.

References interval_p.

◆ intervalQuant() [1/2]

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

Definition at line 89 of file MSFlagCmdColumns.h.

References intervalQuant_p.

◆ intervalQuant() [2/2]

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

Definition at line 104 of file MSFlagCmdColumns.h.

References intervalQuant_p.

◆ level() [1/2]

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

Definition at line 90 of file MSFlagCmdColumns.h.

References level_p.

◆ level() [2/2]

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

Definition at line 105 of file MSFlagCmdColumns.h.

References level_p.

◆ nrow()

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().

◆ operator=()

MSFlagCmdColumns& casacore::MSFlagCmdColumns::operator= ( const MSFlagCmdColumns )
private

◆ reason() [1/2]

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

Definition at line 91 of file MSFlagCmdColumns.h.

References reason_p.

◆ reason() [2/2]

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

Definition at line 106 of file MSFlagCmdColumns.h.

References reason_p.

◆ setEpochRef()

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;

◆ severity() [1/2]

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

Definition at line 92 of file MSFlagCmdColumns.h.

References severity_p.

◆ severity() [2/2]

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

Definition at line 107 of file MSFlagCmdColumns.h.

References severity_p.

◆ time() [1/2]

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

Definition at line 93 of file MSFlagCmdColumns.h.

References time_p.

◆ time() [2/2]

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

Definition at line 108 of file MSFlagCmdColumns.h.

References time_p.

◆ timeMeas() [1/2]

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

Definition at line 95 of file MSFlagCmdColumns.h.

References timeMeas_p.

◆ timeMeas() [2/2]

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

Definition at line 110 of file MSFlagCmdColumns.h.

References timeMeas_p.

◆ timeQuant() [1/2]

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

Definition at line 94 of file MSFlagCmdColumns.h.

References timeQuant_p.

◆ timeQuant() [2/2]

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

Definition at line 109 of file MSFlagCmdColumns.h.

References timeQuant_p.

◆ type() [1/2]

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

Definition at line 96 of file MSFlagCmdColumns.h.

References type_p.

◆ type() [2/2]

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

Definition at line 111 of file MSFlagCmdColumns.h.

References type_p.

Member Data Documentation

◆ applied_p

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

Definition at line 143 of file MSFlagCmdColumns.h.

Referenced by applied(), and nrow().

◆ command_p

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

Definition at line 144 of file MSFlagCmdColumns.h.

Referenced by command().

◆ interval_p

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

Definition at line 145 of file MSFlagCmdColumns.h.

Referenced by interval().

◆ intervalQuant_p

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

Definition at line 156 of file MSFlagCmdColumns.h.

Referenced by intervalQuant().

◆ level_p

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

Definition at line 146 of file MSFlagCmdColumns.h.

Referenced by level().

◆ reason_p

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

Definition at line 147 of file MSFlagCmdColumns.h.

Referenced by reason().

◆ severity_p

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

Definition at line 148 of file MSFlagCmdColumns.h.

Referenced by severity().

◆ time_p

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

Definition at line 149 of file MSFlagCmdColumns.h.

Referenced by time().

◆ timeMeas_p

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

Definition at line 153 of file MSFlagCmdColumns.h.

Referenced by timeMeas().

◆ timeQuant_p

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

Definition at line 157 of file MSFlagCmdColumns.h.

Referenced by timeQuant().

◆ type_p

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: