casacore
|
A class to provide easy access to MSState columns. More...
#include <MSStateColumns.h>
Public Member Functions | |
MSStateColumns (const MSState &msState) | |
Create a columns object that accesses the data in the specified Table. More... | |
~MSStateColumns () | |
The destructor does nothing special. More... | |
ScalarColumn< Double > & | cal () |
Access to required columns. More... | |
ScalarQuantColumn< Double > & | calQuant () |
ScalarColumn< Bool > & | flagRow () |
ScalarColumn< Double > & | load () |
ScalarQuantColumn< Double > & | loadQuant () |
ScalarColumn< String > & | obsMode () |
ScalarColumn< Bool > & | ref () |
ScalarColumn< Bool > & | sig () |
ScalarColumn< Int > & | subScan () |
const ScalarColumn< Double > & | cal () const |
Const access to required columns. More... | |
const ScalarQuantColumn< Double > & | calQuant () const |
const ScalarColumn< Bool > & | flagRow () const |
const ScalarColumn< Double > & | load () const |
const ScalarQuantColumn< Double > & | loadQuant () const |
const ScalarColumn< String > & | obsMode () const |
const ScalarColumn< Bool > & | ref () const |
const ScalarColumn< Bool > & | sig () const |
const ScalarColumn< Int > & | subScan () const |
rownr_t | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Int64 | matchState (const Quantum< Double > &stateCalQ, const Quantum< Double > &stateLoadQ, const String &stateObsMode, const Bool &stateRef, const Bool &stateSig, const Int &stateSubScan, const Quantum< Double > &tolerance, Int64 tryRow=-1) |
Returns the last row that contains a state with the specified values. More... | |
Protected Member Functions | |
MSStateColumns () | |
void | attach (const MSState &msState) |
Private Member Functions | |
MSStateColumns (const MSStateColumns &) | |
MSStateColumns & | operator= (const MSStateColumns &) |
Private Attributes | |
ScalarColumn< Double > | cal_p |
ScalarColumn< Bool > | flagRow_p |
ScalarColumn< Double > | load_p |
ScalarColumn< String > | obsMode_p |
ScalarColumn< Bool > | ref_p |
ScalarColumn< Bool > | sig_p |
ScalarColumn< Int > | subScan_p |
ScalarQuantColumn< Double > | calQuant_p |
Access to Quantum columns. More... | |
ScalarQuantColumn< Double > | loadQuant_p |
A class to provide easy access to MSState columns.
Public interface
MSStateColumns stands for MeasurementSet State Table columns.
This class provides access to the columns in the MSState 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.
See MSColumns for the motivation.
Definition at line 72 of file MSStateColumns.h.
casacore::MSStateColumns::MSStateColumns | ( | const MSState & | msState | ) |
Create a columns object that accesses the data in the specified Table.
casacore::MSStateColumns::~MSStateColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
|
protected |
|
inline |
|
inline |
|
inline |
Definition at line 84 of file MSStateColumns.h.
References calQuant_p.
|
inline |
Definition at line 97 of file MSStateColumns.h.
References calQuant_p.
|
inline |
Definition at line 85 of file MSStateColumns.h.
References flagRow_p.
|
inline |
Definition at line 98 of file MSStateColumns.h.
References flagRow_p.
|
inline |
Definition at line 86 of file MSStateColumns.h.
References load_p.
|
inline |
Definition at line 99 of file MSStateColumns.h.
References load_p.
|
inline |
Definition at line 87 of file MSStateColumns.h.
References loadQuant_p.
|
inline |
Definition at line 100 of file MSStateColumns.h.
References loadQuant_p.
Int64 casacore::MSStateColumns::matchState | ( | const Quantum< Double > & | stateCalQ, |
const Quantum< Double > & | stateLoadQ, | ||
const String & | stateObsMode, | ||
const Bool & | stateRef, | ||
const Bool & | stateSig, | ||
const Int & | stateSubScan, | ||
const Quantum< Double > & | tolerance, | ||
Int64 | tryRow = -1 |
||
) |
Returns the last row that contains a state with the specified values.
For Cal and Load, the tolerance is applied in the match. Returns -1 if no match could be found. Flagged rows can never match. If tryRow is non-negative, then that row is tested to see if it matches before any others are tested. Setting tryRow to a positive value greater than the table length will throw an exception (AipsError), when compiled in debug mode.
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 108 of file MSStateColumns.h.
References cal_p, and casacore::TableColumn::nrow().
|
inline |
Definition at line 88 of file MSStateColumns.h.
References obsMode_p.
|
inline |
Definition at line 101 of file MSStateColumns.h.
References obsMode_p.
|
private |
|
inline |
Definition at line 89 of file MSStateColumns.h.
References ref_p.
|
inline |
Definition at line 102 of file MSStateColumns.h.
References ref_p.
|
inline |
Definition at line 90 of file MSStateColumns.h.
References sig_p.
|
inline |
Definition at line 103 of file MSStateColumns.h.
References sig_p.
|
inline |
Definition at line 91 of file MSStateColumns.h.
References subScan_p.
|
inline |
Definition at line 104 of file MSStateColumns.h.
References subScan_p.
|
private |
Definition at line 141 of file MSStateColumns.h.
|
private |
Access to Quantum columns.
Definition at line 150 of file MSStateColumns.h.
Referenced by calQuant().
|
private |
Definition at line 142 of file MSStateColumns.h.
Referenced by flagRow().
|
private |
Definition at line 143 of file MSStateColumns.h.
Referenced by load().
|
private |
Definition at line 151 of file MSStateColumns.h.
Referenced by loadQuant().
|
private |
Definition at line 144 of file MSStateColumns.h.
Referenced by obsMode().
|
private |
Definition at line 145 of file MSStateColumns.h.
Referenced by ref().
|
private |
Definition at line 146 of file MSStateColumns.h.
Referenced by sig().
|
private |
Definition at line 147 of file MSStateColumns.h.
Referenced by subScan().