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;
178 {
return convert (rownr, meas.getRef()); }
257 #define ROScalarMeasColumn ScalarMeasColumn
260 #ifndef CASACORE_NO_AUTO_TEMPLATES
261 #include <casacore/measures/TableMeasures/ScalarMeasColumn.tcc>
M convert(rownr_t rownr, uInt refCode) const
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.
void setDescUnits(const Vector< Unit > &units, Bool tableMustBeEmpty=True)
ScalarMeasColumn()
The default constructor creates a null object.
M operator()(rownr_t rownr) const
ScalarMeasColumn & operator=(const ScalarMeasColumn< M > &that)
Assignment makes no sense in a readonly class.
void get(rownr_t rownr, M &meas) const
Get the Measure contained in the specified row.
void put(rownr_t rownr, const M &meas)
Put a Measure into the given row.
void setDescOffset(const Measure &offset, Bool tableMustBeEmpty=True)
ScalarMeasColumn< M > * itsOffsetCol
virtual ~ScalarMeasColumn()
M convert(rownr_t rownr, const MeasRef< M > &measRef) const
Get the Measure contained in the specified row and convert it to the given reference.
ArrayColumn< Double > * itsArrDataCol
void reference(const ScalarMeasColumn< M > &that)
Change the reference to another column.
ScalarMeasColumn(const Table &tab, const String &columnName)
Create the ScalarMeasColumn from the table and column Name.
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
ScalarMeasColumn(const ScalarMeasColumn< M > &that)
Copy constructor (copy semantics).
void setDescRefCode(uInt refCode, Bool tableMustBeEmpty=True)
Reset the refCode, offset, or units.
ScalarColumn< Double > * itsScaDataCol
const MeasRef< M > & getMeasRef() const
Returns the column's fixed reference or the reference of the last read Measure if references are vari...
ScalarColumn< String > * itsRefStrCol
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...
ScalarColumn< Int > * itsRefIntCol
String: the storage and methods of handling collections of characters.
const String & columnName() const
Get the name of the column.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
uInt64 rownr_t
Define the type of a row number in a table.