26#ifndef MEASURES_SCALARQUANTCOLUMN_H
27#define MEASURES_SCALARQUANTCOLUMN_H
30#include <casacore/casa/aips.h>
31#include <casacore/casa/Quanta/Quantum.h>
236#define ROScalarQuantColumn ScalarQuantColumn
238#ifndef CASACORE_NO_AUTO_TEMPLATES
239#include <casacore/measures/TableMeasures/ScalarQuantColumn.tcc>
void get(rownr_t rownr, Quantum< T > &q) const
Get the quantum stored in the specified row.
void attach(const Table &tab, const String &columnName, const Unit &)
const String & getUnits() const
Returns the column's value for Units as a string.
Bool operator==(const ScalarQuantColumn< T > &that)
Comparison is not defined, since its semantics are unclear.
const ScalarColumn< String > * unitsCol() const
Get access to itsUnitsCol.
Quantum< T > operator()(rownr_t rownr, const Unit &) const
Return the quantum stored in the specified row, converted to the given unit.
Bool isUnitVariable() const
Test whether the Quantum column has variable units.
Quantum< T > operator()(rownr_t rownr) const
Return the quantum stored in the specified row.
ScalarColumn< String > * itsUnitsCol
void getData(rownr_t rownr, Quantum< T > &q) const
Get the data without possible conversion.
ScalarQuantColumn()
The default constructor creates a null object.
ScalarQuantColumn(const ScalarQuantColumn< T > &that)
Copy constructor (copy semantics).
ScalarQuantColumn(const Table &tab, const String &columnName)
Create the ScalarQuantColumn from the specified table and column name.
Quantum< T > operator()(rownr_t rownr, const Quantum< T > &other) const
Return the quantum in the specified row, converted to the unit in other.
void cleanUp()
Deletes allocated memory etc.
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
Bool isNull() const
Test if the object is null.
void get(rownr_t rownr, Quantum< T > &q, const Quantum< T > &other) const
Get the quantum in the specified row, converted to the unit in other.
ScalarColumn< T > * itsDataCol
std::shared_ptr< Quantum< Vector< T > > > getColumn(const Unit &unit="") const
Get the column as a Quantum<Vector<T> >.
ScalarQuantColumn & operator=(const ScalarQuantColumn< T > &that)
Assignment makes no sense in a read only class.
ScalarQuantColumn(const Table &tab, const String &columnName, const Unit &)
Create the ScalarQuantColumn from the specified table and column name.
void throwIfNull() const
Throw an exception if the object is null.
void reference(const ScalarQuantColumn< T > &that)
Change the reference to another column.
void put(rownr_t rownr, const Quantum< T > &q)
Put a quantum into the table.
void init(const Table &tab, const String &columnName)
Initialize the ScalarQuantColumn from the specified table and column.
void get(rownr_t rownr, Quantum< T > &q, const Unit &) const
Get the quantum in the specified row, converted to the given unit.
String: the storage and methods of handling collections of characters.
For temporary backward namespace compatibility, use casa as alias for casacore.
bool Bool
Define the standard types used by Casacore.
uInt64 rownr_t
Define the type of a row number in a table.