26#ifndef MEASURES_ARRAYMEASCOLUMN_H
27#define MEASURES_ARRAYMEASCOLUMN_H
30#include <casacore/casa/aips.h>
31#include <casacore/measures/TableMeasures/TableMeasColumn.h>
32#include <casacore/measures/Measures/MeasRef.h>
33#include <casacore/casa/Arrays/ArrayFwd.h>
38template <
class T>
class ArrayColumn;
39template <
class T>
class ScalarColumn;
40template <
class M>
class ScalarMeasColumn;
204 {
return convert (rownr, meas.getRef()); }
277#define ROArrayMeasColumn ArrayMeasColumn
280#ifndef CASACORE_NO_AUTO_TEMPLATES
281#include <casacore/measures/TableMeasures/ArrayMeasColumn.tcc>
void cleanUp()
Deletes allocated memory etc.
ScalarColumn< Int > * itsRefIntCol
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...
virtual ~ArrayMeasColumn()
ArrayMeasColumn()
The default constructor creates a null object.
Array< M > convert(rownr_t rownr, uInt refCode) const
ArrayMeasColumn(const ArrayMeasColumn< M > &that)
Copy constructor (copy semantics).
void setDescOffset(const Measure &offset, Bool tableMustBeEmpty=True)
ArrayMeasColumn & operator=(const ArrayMeasColumn< M > &that)
Assignment makes no sense in a read only class.
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.
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.
ArrayMeasColumn(const Table &tab, const String &columnName)
Create the ArrayMeasColumn from the table and column Name.
Array< M > doConvert(rownr_t rownr, typename M::Convert &conv) const
Get the data and convert using conversion engine.
const MeasRef< M > & getMeasRef() const
Get the column's reference.
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 > operator()(rownr_t rownr) const
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.
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.