casacore
|
#include <MSSourceColumns.h>
Protected Member Functions | |
MSSourceColumns () | |
void | attach (const MSSource &msSource) |
Private Member Functions | |
MSSourceColumns (const MSSourceColumns &) | |
MSSourceColumns & | operator= (const MSSourceColumns &) |
void | attachOptionalCols (const MSSource &msSource) |
A class to provide easy access to MSSource columns
Public interface
MSSourceColumns stands for MeasurementSet Source Table columns.
This class provides access to the columns in the MSSource 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 88 of file MSSourceColumns.h.
casacore::MSSourceColumns::MSSourceColumns | ( | const MSSource & | msSource | ) |
Construct from the supplied Table.
casacore::MSSourceColumns::~MSSourceColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
|
protected |
|
private |
|
inline |
Access to required columns.
Definition at line 102 of file MSSourceColumns.h.
References calibrationGroup_p.
|
inline |
Const access to required columns.
Definition at line 139 of file MSSourceColumns.h.
References calibrationGroup_p.
|
inline |
Definition at line 103 of file MSSourceColumns.h.
References code_p.
|
inline |
Definition at line 141 of file MSSourceColumns.h.
References code_p.
|
inline |
Definition at line 104 of file MSSourceColumns.h.
References direction_p.
|
inline |
Definition at line 142 of file MSSourceColumns.h.
References direction_p.
|
inline |
Definition at line 106 of file MSSourceColumns.h.
References directionMeas_p.
|
inline |
Definition at line 145 of file MSSourceColumns.h.
References directionMeas_p.
|
inline |
Definition at line 105 of file MSSourceColumns.h.
References directionQuant_p.
|
inline |
Definition at line 143 of file MSSourceColumns.h.
References directionQuant_p.
|
inline |
Definition at line 107 of file MSSourceColumns.h.
References interval_p.
|
inline |
Definition at line 147 of file MSSourceColumns.h.
References interval_p.
|
inline |
Definition at line 108 of file MSSourceColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 148 of file MSSourceColumns.h.
References intervalQuant_p.
|
inline |
Is this object defined? (MSSource table is optional)
Definition at line 98 of file MSSourceColumns.h.
References isNull_p.
Referenced by nrow().
|
inline |
Definition at line 109 of file MSSourceColumns.h.
References name_p.
|
inline |
Definition at line 150 of file MSSourceColumns.h.
References name_p.
|
inline |
Convenience function that returns the number of rows in any of the columns.
Returns zero if the object is null.
Definition at line 187 of file MSSourceColumns.h.
References calibrationGroup_p, isNull(), and casacore::TableColumn::nrow().
|
inline |
Definition at line 110 of file MSSourceColumns.h.
References numLines_p.
|
inline |
Definition at line 151 of file MSSourceColumns.h.
References numLines_p.
|
private |
|
inline |
Access to optional columns.
Definition at line 122 of file MSSourceColumns.h.
References position_p.
|
inline |
Const access to optional columns.
Definition at line 165 of file MSSourceColumns.h.
References position_p.
|
inline |
Definition at line 124 of file MSSourceColumns.h.
References positionMeas_p.
|
inline |
Definition at line 168 of file MSSourceColumns.h.
References positionMeas_p.
|
inline |
Definition at line 123 of file MSSourceColumns.h.
References positionQuant_p.
|
inline |
Definition at line 166 of file MSSourceColumns.h.
References positionQuant_p.
|
inline |
Definition at line 111 of file MSSourceColumns.h.
References properMotion_p.
|
inline |
Definition at line 152 of file MSSourceColumns.h.
References properMotion_p.
|
inline |
Definition at line 112 of file MSSourceColumns.h.
References properMotionQuant_p.
|
inline |
Definition at line 153 of file MSSourceColumns.h.
References properMotionQuant_p.
|
inline |
Definition at line 125 of file MSSourceColumns.h.
References pulsarId_p.
|
inline |
Definition at line 170 of file MSSourceColumns.h.
References pulsarId_p.
|
inline |
Definition at line 126 of file MSSourceColumns.h.
References restFrequency_p.
|
inline |
Definition at line 171 of file MSSourceColumns.h.
References restFrequency_p.
|
inline |
Definition at line 128 of file MSSourceColumns.h.
References restFrequencyMeas_p.
|
inline |
Definition at line 174 of file MSSourceColumns.h.
References restFrequencyMeas_p.
|
inline |
Definition at line 127 of file MSSourceColumns.h.
References restFrequencyQuant_p.
|
inline |
Definition at line 172 of file MSSourceColumns.h.
References restFrequencyQuant_p.
void casacore::MSSourceColumns::setDirectionRef | ( | MDirection::Types | ref | ) |
set the direction type for the DIRECTION column.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casacore::MSSourceColumns::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;
void casacore::MSSourceColumns::setFrequencyRef | ( | MFrequency::Types | ref | ) |
set the frequency type for the REST_FREQUENCY column.
Does nothing if this column is not defined. This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casacore::MSSourceColumns::setPositionRef | ( | MPosition::Types | ref | ) |
set the position type for the POSITION column.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casacore::MSSourceColumns::setRadialVelocityRef | ( | MRadialVelocity::Types | ref | ) |
set the radial velocity type for the SYSVEL column.
Does nothing if this column is not defined. This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
|
inline |
Definition at line 113 of file MSSourceColumns.h.
References sourceId_p.
|
inline |
Definition at line 155 of file MSSourceColumns.h.
References sourceId_p.
|
inline |
Definition at line 130 of file MSSourceColumns.h.
References sourceModel_p.
|
inline |
Definition at line 176 of file MSSourceColumns.h.
References sourceModel_p.
|
inline |
Definition at line 114 of file MSSourceColumns.h.
References spectralWindowId_p.
|
inline |
Definition at line 156 of file MSSourceColumns.h.
References spectralWindowId_p.
|
inline |
Definition at line 131 of file MSSourceColumns.h.
References sysvel_p.
|
inline |
Definition at line 178 of file MSSourceColumns.h.
References sysvel_p.
|
inline |
Definition at line 133 of file MSSourceColumns.h.
References sysvelMeas_p.
|
inline |
Definition at line 180 of file MSSourceColumns.h.
References sysvelMeas_p.
|
inline |
Definition at line 132 of file MSSourceColumns.h.
References sysvelQuant_p.
|
inline |
Definition at line 179 of file MSSourceColumns.h.
References sysvelQuant_p.
|
inline |
Definition at line 115 of file MSSourceColumns.h.
References time_p.
|
inline |
Definition at line 158 of file MSSourceColumns.h.
References time_p.
|
inline |
Definition at line 117 of file MSSourceColumns.h.
References timeMeas_p.
|
inline |
Definition at line 160 of file MSSourceColumns.h.
References timeMeas_p.
|
inline |
Definition at line 116 of file MSSourceColumns.h.
References timeQuant_p.
|
inline |
Definition at line 159 of file MSSourceColumns.h.
References timeQuant_p.
|
inline |
Definition at line 134 of file MSSourceColumns.h.
References transition_p.
|
inline |
Definition at line 182 of file MSSourceColumns.h.
References transition_p.
|
private |
Definition at line 241 of file MSSourceColumns.h.
Referenced by calibrationGroup(), and nrow().
|
private |
Definition at line 242 of file MSSourceColumns.h.
Referenced by code().
|
private |
Definition at line 243 of file MSSourceColumns.h.
Referenced by direction().
|
private |
Definition at line 260 of file MSSourceColumns.h.
Referenced by directionMeas().
|
private |
Definition at line 268 of file MSSourceColumns.h.
Referenced by directionQuant().
|
private |
Definition at line 244 of file MSSourceColumns.h.
Referenced by interval().
|
private |
Definition at line 269 of file MSSourceColumns.h.
Referenced by intervalQuant().
|
private |
Definition at line 238 of file MSSourceColumns.h.
Referenced by isNull().
|
private |
Definition at line 245 of file MSSourceColumns.h.
Referenced by name().
|
private |
Definition at line 246 of file MSSourceColumns.h.
Referenced by numLines().
|
private |
Definition at line 252 of file MSSourceColumns.h.
Referenced by position().
|
private |
Definition at line 263 of file MSSourceColumns.h.
Referenced by positionMeas().
|
private |
Definition at line 273 of file MSSourceColumns.h.
Referenced by positionQuant().
|
private |
Definition at line 247 of file MSSourceColumns.h.
Referenced by properMotion().
|
private |
Definition at line 270 of file MSSourceColumns.h.
Referenced by properMotionQuant().
|
private |
Definition at line 253 of file MSSourceColumns.h.
Referenced by pulsarId().
|
private |
Definition at line 254 of file MSSourceColumns.h.
Referenced by restFrequency().
|
private |
Definition at line 264 of file MSSourceColumns.h.
Referenced by restFrequencyMeas().
|
private |
Definition at line 274 of file MSSourceColumns.h.
Referenced by restFrequencyQuant().
|
private |
Definition at line 248 of file MSSourceColumns.h.
Referenced by sourceId().
|
private |
Definition at line 255 of file MSSourceColumns.h.
Referenced by sourceModel().
|
private |
Definition at line 249 of file MSSourceColumns.h.
Referenced by spectralWindowId().
|
private |
Definition at line 256 of file MSSourceColumns.h.
Referenced by sysvel().
|
private |
Definition at line 265 of file MSSourceColumns.h.
Referenced by sysvelMeas().
|
private |
Definition at line 275 of file MSSourceColumns.h.
Referenced by sysvelQuant().
|
private |
Definition at line 250 of file MSSourceColumns.h.
Referenced by time().
|
private |
Definition at line 261 of file MSSourceColumns.h.
Referenced by timeMeas().
|
private |
Definition at line 271 of file MSSourceColumns.h.
Referenced by timeQuant().
|
private |
Definition at line 257 of file MSSourceColumns.h.
Referenced by transition().