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> 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 A 1-D Specialization of the Array class.
Array< M > operator()(uInt rownr) const
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.
Array< M > doConvert(uInt rownr, typename M::Convert &conv) const
Get the data and convert using conversion engine.
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.
const MeasRef< M > & getMeasRef() const
Get the column's reference.
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
const String & columnName() const
Get the name of the column.
Read only access to table scalar Measure columns.
void setDescUnits(const Vector< Unit > &units, Bool tableMustBeEmpty=True)
this file contains all the compiler specific defines
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...