28 #ifndef MEASURES_ARRAYMEASCOLUMN_H
29 #define MEASURES_ARRAYMEASCOLUMN_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/measures/TableMeasures/TableMeasColumn.h>
34 #include <casacore/measures/Measures/MeasRef.h>
35 #include <casacore/casa/Arrays/ArrayFwd.h>
40 template <
class T>
class ArrayColumn;
41 template <
class T>
class ScalarColumn;
42 template <
class M>
class ScalarMeasColumn;
206 {
return convert (rownr, meas.getRef()); }
279 #define ROArrayMeasColumn ArrayMeasColumn
282 #ifndef CASACORE_NO_AUTO_TEMPLATES
283 #include <casacore/measures/TableMeasures/ArrayMeasColumn.tcc>
void cleanUp()
Deletes allocated memory etc.
ScalarColumn< Int > * itsRefIntCol
virtual ~ArrayMeasColumn()
ArrayMeasColumn()
The default constructor creates a null object.
ArrayMeasColumn & operator=(const ArrayMeasColumn< M > &that)
Assignment makes no sense in a read only class.
ArrayMeasColumn(const ArrayMeasColumn< M > &that)
Copy constructor (copy semantics).
Array< M > convert(rownr_t rownr, const MeasRef< M > &measRef) const
Get the Measure array contained in the specified row and convert it to the given reference.
const MeasRef< M > & getMeasRef() const
Get the column's reference.
Array< M > convert(rownr_t rownr, uInt refCode) const
void setDescOffset(const Measure &offset, Bool tableMustBeEmpty=True)
ArrayColumn< Double > * itsDataCol
void setDescUnits(const Vector< Unit > &units, Bool tableMustBeEmpty=True)
ScalarMeasColumn< M > * itsOffsetCol
ArrayMeasColumn< M > * itsArrOffsetCol
void reference(const ArrayMeasColumn< M > &that)
Change the reference to another column.
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
ArrayMeasColumn(const Table &tab, const String &columnName)
Create the ArrayMeasColumn from the table and column Name.
Array< M > operator()(rownr_t rownr) const
void get(rownr_t rownr, Array< M > &meas, Bool resize=False) const
Get the Measure array in the specified row.
ArrayColumn< Int > * itsArrRefIntCol
ScalarColumn< String > * itsRefStrCol
ArrayColumn< String > * itsArrRefStrCol
Array< M > doConvert(rownr_t rownr, typename M::Convert &conv) const
Get the data and convert using conversion engine.
void put(rownr_t rownr, const Array< M > &)
Add a Measure array to the specified row.
void setDescRefCode(uInt refCode, Bool tableMustBeEmpty=True)
Reset the refCode, offset, or units.
Array< M > convert(rownr_t rownr, const M &meas) const
Get the Measure array contained in the specified row and convert it to the reference and offset found...
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.