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

More...

#include <MSHistoryColumns.h>

Public Member Functions

 MSHistoryColumns (const MSHistory &msHistory)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSHistoryColumns ()
 The destructor does nothing special. More...
 
ScalarColumn< String > & application ()
 Access to required columns. More...
 
ArrayColumn< String > & appParams ()
 
ArrayColumn< String > & cliCommand ()
 
ScalarColumn< String > & message ()
 
ScalarColumn< Int > & objectId ()
 
ScalarColumn< Int > & observationId ()
 
ScalarColumn< String > & origin ()
 
ScalarColumn< String > & priority ()
 
ScalarColumn< Double > & time ()
 
ScalarQuantColumn< Double > & timeQuant ()
 
ScalarMeasColumn< MEpoch > & timeMeas ()
 
const ScalarColumn< String > & application () const
 Const access to required columns. More...
 
const ArrayColumn< String > & appParams () const
 
const ArrayColumn< String > & cliCommand () const
 
const ScalarColumn< String > & message () const
 
const ScalarColumn< Int > & objectId () const
 
const ScalarColumn< Int > & observationId () const
 
const ScalarColumn< String > & origin () const
 
const ScalarColumn< String > & priority () const
 
const ScalarColumn< Double > & time () const
 
const ScalarQuantColumn< Double > & timeQuant () const
 
const ScalarMeasColumn< MEpoch > & timeMeas () 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

 MSHistoryColumns ()
 
void attach (const MSHistory &msHistory)
 

Private Member Functions

 MSHistoryColumns (const MSHistoryColumns &)
 
MSHistoryColumnsoperator= (const MSHistoryColumns &)
 

Private Attributes

ScalarColumn< Stringapplication_p
 
ArrayColumn< StringappParams_p
 
ArrayColumn< StringcliCommand_p
 
ScalarColumn< Stringmessage_p
 
ScalarColumn< IntobjectId_p
 
ScalarColumn< IntobservationId_p
 
ScalarColumn< Stringorigin_p
 
ScalarColumn< Stringpriority_p
 
ScalarColumn< Doubletime_p
 
ScalarMeasColumn< MEpochtimeMeas_p
 
ScalarQuantColumn< DoubletimeQuant_p
 

Detailed Description

A class to provide easy access to MSHistory columns

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSHistoryColumns stands for MeasurementSet History Table columns.

Synopsis

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

Note by GvD 28-Jan-2010: According to note 229 the OBJECTID column should contain Strings. It is, however, defined as Int. It has to be left as such, otherwise older MeasurementSets cannot be read anymore.

Motivation

See MSColumns for the motivation.

Definition at line 82 of file MSHistoryColumns.h.

Constructor & Destructor Documentation

◆ MSHistoryColumns() [1/3]

casacore::MSHistoryColumns::MSHistoryColumns ( const MSHistory msHistory)

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

◆ ~MSHistoryColumns()

casacore::MSHistoryColumns::~MSHistoryColumns ( )

The destructor does nothing special.

◆ MSHistoryColumns() [2/3]

casacore::MSHistoryColumns::MSHistoryColumns ( )
protected

◆ MSHistoryColumns() [3/3]

casacore::MSHistoryColumns::MSHistoryColumns ( const MSHistoryColumns )
private

Member Function Documentation

◆ application() [1/2]

ScalarColumn<String>& casacore::MSHistoryColumns::application ( )
inline

Access to required columns.

Definition at line 93 of file MSHistoryColumns.h.

References application_p.

◆ application() [2/2]

const ScalarColumn<String>& casacore::MSHistoryColumns::application ( ) const
inline

Const access to required columns.

Definition at line 108 of file MSHistoryColumns.h.

References application_p.

◆ appParams() [1/2]

ArrayColumn<String>& casacore::MSHistoryColumns::appParams ( )
inline

Definition at line 94 of file MSHistoryColumns.h.

References appParams_p.

◆ appParams() [2/2]

const ArrayColumn<String>& casacore::MSHistoryColumns::appParams ( ) const
inline

Definition at line 109 of file MSHistoryColumns.h.

References appParams_p.

◆ attach()

void casacore::MSHistoryColumns::attach ( const MSHistory msHistory)
protected

◆ cliCommand() [1/2]

ArrayColumn<String>& casacore::MSHistoryColumns::cliCommand ( )
inline

Definition at line 95 of file MSHistoryColumns.h.

References cliCommand_p.

◆ cliCommand() [2/2]

const ArrayColumn<String>& casacore::MSHistoryColumns::cliCommand ( ) const
inline

Definition at line 110 of file MSHistoryColumns.h.

References cliCommand_p.

◆ message() [1/2]

ScalarColumn<String>& casacore::MSHistoryColumns::message ( )
inline

Definition at line 96 of file MSHistoryColumns.h.

References message_p.

◆ message() [2/2]

const ScalarColumn<String>& casacore::MSHistoryColumns::message ( ) const
inline

Definition at line 111 of file MSHistoryColumns.h.

References message_p.

◆ nrow()

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

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

Definition at line 122 of file MSHistoryColumns.h.

References application_p.

◆ objectId() [1/2]

ScalarColumn<Int>& casacore::MSHistoryColumns::objectId ( )
inline

Definition at line 97 of file MSHistoryColumns.h.

References objectId_p.

◆ objectId() [2/2]

const ScalarColumn<Int>& casacore::MSHistoryColumns::objectId ( ) const
inline

Definition at line 112 of file MSHistoryColumns.h.

References objectId_p.

◆ observationId() [1/2]

ScalarColumn<Int>& casacore::MSHistoryColumns::observationId ( )
inline

Definition at line 98 of file MSHistoryColumns.h.

References observationId_p.

◆ observationId() [2/2]

const ScalarColumn<Int>& casacore::MSHistoryColumns::observationId ( ) const
inline

Definition at line 113 of file MSHistoryColumns.h.

References observationId_p.

◆ operator=()

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

◆ origin() [1/2]

ScalarColumn<String>& casacore::MSHistoryColumns::origin ( )
inline

Definition at line 99 of file MSHistoryColumns.h.

References origin_p.

◆ origin() [2/2]

const ScalarColumn<String>& casacore::MSHistoryColumns::origin ( ) const
inline

Definition at line 114 of file MSHistoryColumns.h.

References origin_p.

◆ priority() [1/2]

ScalarColumn<String>& casacore::MSHistoryColumns::priority ( )
inline

Definition at line 100 of file MSHistoryColumns.h.

References priority_p.

◆ priority() [2/2]

const ScalarColumn<String>& casacore::MSHistoryColumns::priority ( ) const
inline

Definition at line 115 of file MSHistoryColumns.h.

References priority_p.

◆ setEpochRef()

void casacore::MSHistoryColumns::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;

◆ time() [1/2]

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

Definition at line 101 of file MSHistoryColumns.h.

References time_p.

◆ time() [2/2]

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

Definition at line 116 of file MSHistoryColumns.h.

References time_p.

◆ timeMeas() [1/2]

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

Definition at line 103 of file MSHistoryColumns.h.

References timeMeas_p.

◆ timeMeas() [2/2]

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

Definition at line 118 of file MSHistoryColumns.h.

References timeMeas_p.

◆ timeQuant() [1/2]

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

Definition at line 102 of file MSHistoryColumns.h.

References timeQuant_p.

◆ timeQuant() [2/2]

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

Definition at line 117 of file MSHistoryColumns.h.

References timeQuant_p.

Member Data Documentation

◆ application_p

ScalarColumn<String> casacore::MSHistoryColumns::application_p
private

Definition at line 150 of file MSHistoryColumns.h.

Referenced by application(), and nrow().

◆ appParams_p

ArrayColumn<String> casacore::MSHistoryColumns::appParams_p
private

Definition at line 151 of file MSHistoryColumns.h.

Referenced by appParams().

◆ cliCommand_p

ArrayColumn<String> casacore::MSHistoryColumns::cliCommand_p
private

Definition at line 152 of file MSHistoryColumns.h.

Referenced by cliCommand().

◆ message_p

ScalarColumn<String> casacore::MSHistoryColumns::message_p
private

Definition at line 153 of file MSHistoryColumns.h.

Referenced by message().

◆ objectId_p

ScalarColumn<Int> casacore::MSHistoryColumns::objectId_p
private

Definition at line 154 of file MSHistoryColumns.h.

Referenced by objectId().

◆ observationId_p

ScalarColumn<Int> casacore::MSHistoryColumns::observationId_p
private

Definition at line 155 of file MSHistoryColumns.h.

Referenced by observationId().

◆ origin_p

ScalarColumn<String> casacore::MSHistoryColumns::origin_p
private

Definition at line 156 of file MSHistoryColumns.h.

Referenced by origin().

◆ priority_p

ScalarColumn<String> casacore::MSHistoryColumns::priority_p
private

Definition at line 157 of file MSHistoryColumns.h.

Referenced by priority().

◆ time_p

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

Definition at line 158 of file MSHistoryColumns.h.

Referenced by time().

◆ timeMeas_p

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

Definition at line 161 of file MSHistoryColumns.h.

Referenced by timeMeas().

◆ timeQuant_p

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

Definition at line 164 of file MSHistoryColumns.h.

Referenced by timeQuant().


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