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;
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.
void setDescRefCode(uInt refCode, Bool tableMustBeEmpty=True)
Reset the refCode, offset, or units.
ScalarMeasColumn()
The default constructor creates a null object.
ScalarMeasColumn< M > * itsOffsetCol
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
M convert(uInt rownr, uInt refCode) const
ScalarMeasColumn(const Table &tab, const String &columnName)
Create the ScalarMeasColumn from the table and column Name.
ScalarColumn< Int > * itsRefIntCol
ScalarColumn< Double > * itsScaDataCol
M operator()(uInt rownr) const
M convert(uInt rownr, const MeasRef< M > &measRef) const
Get the Measure contained in the specified row and convert it to the given reference.
this file contains all the compiler specific defines
MeasRef< M > makeMeasRef(uInt rownr) const
Make a MeasRef for the given row.
virtual ~ScalarMeasColumn()
ScalarMeasColumn(const ScalarMeasColumn< M > &that)
Copy constructor (copy semantics).
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.
String: the storage and methods of handling collections of characters.
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.
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