casacore
|
#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 &) | |
MSFlagCmdColumns & | operator= (const MSFlagCmdColumns &) |
Private Attributes | |
ScalarColumn< Bool > | applied_p |
ScalarColumn< String > | command_p |
ScalarColumn< Double > | interval_p |
ScalarColumn< Int > | level_p |
ScalarColumn< String > | reason_p |
ScalarColumn< Int > | severity_p |
ScalarColumn< Double > | time_p |
ScalarColumn< String > | type_p |
ScalarMeasColumn< MEpoch > | timeMeas_p |
ScalarQuantColumn< Double > | intervalQuant_p |
ScalarQuantColumn< Double > | timeQuant_p |
A class to provide easy access to MSFlagCmd columns
Public interface
MSFlagCmdColumns stands for MeasurementSet FlagCmd Table columns.
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.
See MSColumns for the motivation.
Definition at line 75 of file MSFlagCmdColumns.h.
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.
|
protected |
|
private |
|
inline |
|
inline |
Const access to required columns.
Definition at line 101 of file MSFlagCmdColumns.h.
References applied_p.
|
protected |
|
inline |
Definition at line 87 of file MSFlagCmdColumns.h.
References command_p.
|
inline |
Definition at line 102 of file MSFlagCmdColumns.h.
References command_p.
|
inline |
Definition at line 88 of file MSFlagCmdColumns.h.
References interval_p.
|
inline |
Definition at line 103 of file MSFlagCmdColumns.h.
References interval_p.
|
inline |
Definition at line 89 of file MSFlagCmdColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 104 of file MSFlagCmdColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 90 of file MSFlagCmdColumns.h.
References level_p.
|
inline |
Definition at line 105 of file MSFlagCmdColumns.h.
References level_p.
|
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().
|
private |
|
inline |
Definition at line 91 of file MSFlagCmdColumns.h.
References reason_p.
|
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;
|
inline |
Definition at line 92 of file MSFlagCmdColumns.h.
References severity_p.
|
inline |
Definition at line 107 of file MSFlagCmdColumns.h.
References severity_p.
|
inline |
Definition at line 93 of file MSFlagCmdColumns.h.
References time_p.
|
inline |
Definition at line 108 of file MSFlagCmdColumns.h.
References time_p.
|
inline |
Definition at line 95 of file MSFlagCmdColumns.h.
References timeMeas_p.
|
inline |
Definition at line 110 of file MSFlagCmdColumns.h.
References timeMeas_p.
|
inline |
Definition at line 94 of file MSFlagCmdColumns.h.
References timeQuant_p.
|
inline |
Definition at line 109 of file MSFlagCmdColumns.h.
References timeQuant_p.
|
inline |
Definition at line 96 of file MSFlagCmdColumns.h.
References type_p.
|
inline |
Definition at line 111 of file MSFlagCmdColumns.h.
References type_p.
|
private |
Definition at line 143 of file MSFlagCmdColumns.h.
|
private |
Definition at line 144 of file MSFlagCmdColumns.h.
Referenced by command().
|
private |
Definition at line 145 of file MSFlagCmdColumns.h.
Referenced by interval().
|
private |
Definition at line 156 of file MSFlagCmdColumns.h.
Referenced by intervalQuant().
|
private |
Definition at line 146 of file MSFlagCmdColumns.h.
Referenced by level().
|
private |
Definition at line 147 of file MSFlagCmdColumns.h.
Referenced by reason().
|
private |
Definition at line 148 of file MSFlagCmdColumns.h.
Referenced by severity().
|
private |
Definition at line 149 of file MSFlagCmdColumns.h.
Referenced by time().
|
private |
Definition at line 153 of file MSFlagCmdColumns.h.
Referenced by timeMeas().
|
private |
Definition at line 157 of file MSFlagCmdColumns.h.
Referenced by timeQuant().
|
private |
Definition at line 150 of file MSFlagCmdColumns.h.
Referenced by type().