Go to the documentation of this file.
28 #ifndef MEASURES_SCALARQUANTCOLUMN_H
29 #define MEASURES_SCALARQUANTCOLUMN_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Quanta/Quantum.h>
39 template <
class T>
class ScalarColumn;
203 std::shared_ptr<Quantum<Vector<T> > >
getColumn(
const Unit& unit=
"")
const;
246 #define ROScalarQuantColumn ScalarQuantColumn
249 #ifndef CASACORE_NO_AUTO_TEMPLATES
250 #include <casacore/measures/TableMeasures/ScalarQuantColumn.tcc>
251 #endif //# CASACORE_NO_AUTO_TEMPLATES
void throwIfNull() const
Throw an exception if the object is null.
void init(const Table &tab, const String &columnName)
Initialize the ScalarQuantColumn from the specified table and column.
void getData(uInt rownr, Quantum< T > &q) const
Get the data without possible conversion.
const String & getName() const
Get the unit name.
ScalarColumn< String > * itsUnitsCol
Access to a scalar table column with arbitrary data type.
ScalarQuantColumn & operator=(const ScalarQuantColumn< T > &that)
Assignment makes no sense in a read only class.
Main interface class to a read/write table.
Bool isNull() const
Test if the object is null.
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
const ScalarColumn< String > * unitsCol() const
Get access to itsUnitsCol.
this file contains all the compiler specific defines
void cleanUp()
Deletes allocated memory etc.
Bool operator==(const ScalarQuantColumn< T > &that)
Comparison is not defined, since its semantics are unclear.
Provides access to Scalar Quantum Columns in Tables.
Bool isUnitVariable() const
Test whether the Quantum column has variable units.
ScalarColumn< T > * itsDataCol
String: the storage and methods of handling collections of characters.
ScalarQuantColumn()
The default constructor creates a null object.
bool Bool
Define the standard types used by Casacore.
const String & getUnits() const
Returns the column's value for Units as a string.
std::shared_ptr< Quantum< Vector< T > > > getColumn(const Unit &unit="") const
Get the column as a Quantum<Vector<T> >.
Quantum< T > operator()(uInt rownr) const
Return the quantum stored in the specified row.
void put(uInt rownr, const Quantum< T > &q)
Put a quantum into the table.
void reference(const ScalarQuantColumn< T > &that)
Change the reference to another column.
Quantities (i.e. dimensioned values)
void get(uInt rownr, Quantum< T > &q) const
Get the quantum stored in the specified row.