casa
5.7.0-16
|
A class to provide easy read-write access to MSFlagCmd columns. More...
#include <MSFlagCmdColumns.h>
Public Member Functions | |
MSFlagCmdColumns (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 () |
Read-write 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 ROScalarColumn< Bool > & | applied () const |
Read-only access to required columns. More... | |
const ROScalarColumn< String > & | command () const |
const ROScalarQuantColumn < Double > & | intervalQuant () const |
const ROScalarColumn< Double > & | interval () const |
const ROScalarColumn< Int > & | level () const |
const ROScalarColumn< String > & | reason () const |
const ROScalarColumn< Int > & | severity () const |
const ROScalarColumn< Double > & | time () const |
const ROScalarQuantColumn < Double > & | timeQuant () const |
const ROScalarMeasColumn < MEpoch > & | timeMeas () const |
const ROScalarColumn< String > & | type () const |
void | setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True) |
set the epoch type for the FLAG_CMD column. More... | |
Public Member Functions inherited from casacore::ROMSFlagCmdColumns | |
ROMSFlagCmdColumns (const MSFlagCmd &msFlagCmd) | |
Create a columns object that accesses the data in the specified Table. More... | |
~ROMSFlagCmdColumns () | |
The destructor does nothing special. More... | |
const ROScalarColumn< Bool > & | applied () const |
Access to required columns. More... | |
const ROScalarColumn< String > & | command () const |
const ROScalarQuantColumn < Double > & | intervalQuant () const |
const ROScalarColumn< Double > & | interval () const |
const ROScalarColumn< Int > & | level () const |
const ROScalarColumn< String > & | reason () const |
const ROScalarColumn< Int > & | severity () const |
const ROScalarColumn< Double > & | time () const |
const ROScalarQuantColumn < Double > & | timeQuant () const |
const ROScalarMeasColumn < MEpoch > & | timeMeas () const |
const ROScalarColumn< String > & | type () const |
uInt | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Protected Member Functions | |
MSFlagCmdColumns () | |
void | attach (MSFlagCmd &msFlagCmd) |
Protected Member Functions inherited from casacore::ROMSFlagCmdColumns | |
ROMSFlagCmdColumns () | |
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 read-write 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 167 of file MSFlagCmdColumns.h.
casacore::MSFlagCmdColumns::MSFlagCmdColumns | ( | 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 |
Read-write access to required columns.
Definition at line 178 of file MSFlagCmdColumns.h.
References applied_p.
|
inline |
Read-only access to required columns.
Definition at line 193 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::applied().
|
protected |
|
inline |
Definition at line 179 of file MSFlagCmdColumns.h.
References command_p.
|
inline |
Definition at line 195 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::command().
|
inline |
Definition at line 180 of file MSFlagCmdColumns.h.
References interval_p.
|
inline |
Definition at line 199 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::interval().
|
inline |
Definition at line 181 of file MSFlagCmdColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 197 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::intervalQuant().
|
inline |
Definition at line 182 of file MSFlagCmdColumns.h.
References level_p.
|
inline |
Definition at line 201 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::level().
|
private |
|
inline |
Definition at line 183 of file MSFlagCmdColumns.h.
References reason_p.
|
inline |
Definition at line 203 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::reason().
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 184 of file MSFlagCmdColumns.h.
References severity_p.
|
inline |
Definition at line 205 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::severity().
|
inline |
Definition at line 185 of file MSFlagCmdColumns.h.
References time_p.
|
inline |
Definition at line 207 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::time().
|
inline |
Definition at line 187 of file MSFlagCmdColumns.h.
References timeMeas_p.
|
inline |
Definition at line 211 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::timeMeas().
|
inline |
Definition at line 186 of file MSFlagCmdColumns.h.
References timeQuant_p.
|
inline |
Definition at line 209 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::timeQuant().
|
inline |
Definition at line 188 of file MSFlagCmdColumns.h.
References type_p.
|
inline |
Definition at line 213 of file MSFlagCmdColumns.h.
References casacore::ROMSFlagCmdColumns::type().
|
private |
Definition at line 243 of file MSFlagCmdColumns.h.
Referenced by applied().
|
private |
Definition at line 244 of file MSFlagCmdColumns.h.
Referenced by command().
|
private |
Definition at line 245 of file MSFlagCmdColumns.h.
Referenced by interval().
|
private |
Definition at line 256 of file MSFlagCmdColumns.h.
Referenced by intervalQuant().
|
private |
Definition at line 246 of file MSFlagCmdColumns.h.
Referenced by level().
|
private |
Definition at line 247 of file MSFlagCmdColumns.h.
Referenced by reason().
|
private |
Definition at line 248 of file MSFlagCmdColumns.h.
Referenced by severity().
|
private |
Definition at line 249 of file MSFlagCmdColumns.h.
Referenced by time().
|
private |
Definition at line 253 of file MSFlagCmdColumns.h.
Referenced by timeMeas().
|
private |
Definition at line 257 of file MSFlagCmdColumns.h.
Referenced by timeQuant().
|
private |
Definition at line 250 of file MSFlagCmdColumns.h.
Referenced by type().