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