Go to the documentation of this file.
28 #ifndef MEASURES_SCALARMEASCOLUMN_H
29 #define MEASURES_SCALARMEASCOLUMN_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/measures/TableMeasures/TableMeasColumn.h>
34 #include <casacore/measures/Measures/MeasRef.h>
39 template <
class T>
class ArrayColumn;
40 template <
class T>
class ScalarColumn;
143 template <
class M>
class ScalarMeasColumn :
public TableMeasColumn
163 void reference (
const ScalarMeasColumn<M>& that);
166 void attach (
const Table& tab,
const String& columnName);
171 void get (
uInt rownr, M& meas)
const;
178 {
return convert (rownr, meas.getRef()); }
213 void put (
uInt rownr,
const M& meas);
257 #define ROScalarMeasColumn ScalarMeasColumn
260 #ifndef CASACORE_NO_AUTO_TEMPLATES
261 #include <casacore/measures/TableMeasures/ScalarMeasColumn.tcc>
262 #endif //# CASACORE_NO_AUTO_TEMPLATES
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
void reference(const ScalarMeasColumn< M > &that)
Change the reference to another column.
Physical quantities within reference frame.
void setDescRefCode(uInt refCode, Bool tableMustBeEmpty=True)
Reset the refCode, offset, or units.
ScalarMeasColumn()
The default constructor creates a null object.
ScalarMeasColumn< M > * itsOffsetCol
Base for Reference frame for physical measures.
ScalarMeasColumn & operator=(const ScalarMeasColumn< M > &that)
Assignment makes no sense in a readonly class.
void setDescOffset(const Measure &offset, Bool tableMustBeEmpty=True)
ScalarColumn< String > * itsRefStrCol
ScalarColumn< Int > * itsRefIntCol
ScalarColumn< Double > * itsScaDataCol
M operator()(uInt rownr) const
this file contains all the compiler specific defines
MeasRef< M > makeMeasRef(uInt rownr) const
Make a MeasRef for the given row.
virtual ~ScalarMeasColumn()
Bool equalRefs(const MRBase &r1, const MRBase &r2) const
Check if refs have the same value (as opposed to being the same object).
M convert(uInt rownr, const M &meas) const
Get the Measure contained in the specified row and convert it to the reference and offset found in th...
void get(uInt rownr, M &meas) const
Get the Measure contained in the specified row.
Read only access to table scalar Measure columns.
const MeasRef< M > & getMeasRef() const
Returns the column's fixed reference or the reference of the last read Measure if references are vari...
bool Bool
Define the standard types used by Casacore.
A 1-D Specialization of the Array class.
void put(uInt rownr, const M &meas)
Put a Measure into the given row.
void setDescUnits(const Vector< Unit > &units, Bool tableMustBeEmpty=True)
ArrayColumn< Double > * itsArrDataCol