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 (
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
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.
const String & columnName() const
Get the name of the column.
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
M operator()(uInt rownr) const
Physical quantities within reference frame.
ScalarColumn< Int > * itsRefIntCol
void setDescOffset(const Measure &offset, Bool tableMustBeEmpty=True)
MeasRef< M > makeMeasRef(uInt rownr) const
Make a MeasRef for the given row.
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).
ScalarMeasColumn< M > * itsOffsetCol
bool Bool
Define the standard types used by Casacore.
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...
const MeasRef< M > & getMeasRef() const
Returns the column's fixed reference or the reference of the last read Measure if references are vari...
ScalarMeasColumn & operator=(const ScalarMeasColumn< M > &that)
Assignment makes no sense in a readonly class.
ScalarColumn< String > * itsRefStrCol
void put(uInt rownr, const M &meas)
Put a Measure into the given row.
Read only access to table scalar Measure columns.
void setDescRefCode(uInt refCode, Bool tableMustBeEmpty=True)
Reset the refCode, offset, or units.
virtual ~ScalarMeasColumn()
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.