28 #ifndef MEASURES_ARRAYMEASCOLUMN_H
29 #define MEASURES_ARRAYMEASCOLUMN_H
39 template <
class T>
class ArrayColumn;
40 template <
class T>
class ScalarColumn;
41 template <
class T>
class Array;
42 template <
class M>
class ScalarMeasColumn;
171 template<
class M>
class ArrayMeasColumn :
public TableMeasColumn
191 void reference (
const ArrayMeasColumn<M>& that);
199 void get (
uInt rownr, Array<M>& meas,
Bool resize =
False)
const;
206 {
return convert (rownr, meas.getRef()); }
279 #define ROArrayMeasColumn ArrayMeasColumn
282 #ifndef CASACORE_NO_AUTO_TEMPLATES
283 #include <casacore/measures/TableMeasures/ArrayMeasColumn.tcc>
284 #endif //# CASACORE_NO_AUTO_TEMPLATES
Array< M > convert(uInt rownr, const M &meas) const
Get the Measure array contained in the specified row and convert it to the reference and offset found...
Array< M > operator()(uInt rownr) const
A 1-D Specialization of the Array class.
const MeasRef< M > & getMeasRef() const
Get the column's reference.
const String & columnName() const
Get the name of the column.
ArrayColumn< String > * itsArrRefStrCol
Physical quantities within reference frame.
void cleanUp()
Deletes allocated memory etc.
ScalarMeasColumn< M > * itsOffsetCol
void put(uInt rownr, const Array< M > &)
Add a Measure array to the specified row.
Read only access to table array Measure columns.
ArrayMeasColumn()
The default constructor creates a null object.
ArrayMeasColumn & operator=(const ArrayMeasColumn< M > &that)
Assignment makes no sense in a read only class.
void reference(const ArrayMeasColumn< M > &that)
Change the reference to another column.
void setDescRefCode(uInt refCode, Bool tableMustBeEmpty=True)
Reset the refCode, offset, or units.
ScalarColumn< Int > * itsRefIntCol
void setDescOffset(const Measure &offset, Bool tableMustBeEmpty=True)
bool Bool
Define the standard types used by Casacore.
virtual ~ArrayMeasColumn()
ArrayMeasColumn< M > * itsArrOffsetCol
ArrayColumn< Int > * itsArrRefIntCol
ScalarColumn< String > * itsRefStrCol
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
ArrayColumn< Double > * itsDataCol
Read only access to table scalar Measure columns.
void setDescUnits(const Vector< Unit > &units, Bool tableMustBeEmpty=True)
Array< M > doConvert(uInt rownr, typename M::Convert &conv) const
Get the data and convert using conversion engine.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.