28 #ifndef MEASURES_TABLEQUANTUMDESC_H
29 #define MEASURES_TABLEQUANTUMDESC_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/casa/BasicSL/String.h>
297 const Char* unitCol);
String: the storage and methods of handling collections of characters.
Bool empty() const
Test for empty.
TableQuantumDesc(const TableDesc &td, const String &column, const String &unitCol)
Constructs a Quantum column descriptor with variable units stored in unitCol.
Vector< String > itsUnitsName
The Quantum's unit as a string.
void writeKeys(TableRecord &columnKeyset)
Write the actual keywords.
String itsUnitsColName
Name of units column if units are variable.
void write(TableDesc &)
Makes the TableQuantumDesc persistent (updates the Table Descriptor).
static Bool hasQuanta(const TableColumn &column)
Does this column contain table quanta?
TableQuantumDesc(const TableDesc &td, const String &column, const Char *unitCol)
TableQuantumDesc & operator=(const TableQuantumDesc &that)
Assignment.
TableQuantumDesc(const TableDesc &td, const String &column, const Unit &)
Constructs a Quantum column descriptor with the specified Quantum unit.
String itsColName
Name of column which stores the Quantum's values.
TableQuantumDesc(const TableQuantumDesc &that)
Copy constructor (copy semantics).
static TableQuantumDesc * reconstruct(const TableDesc &td, const String &column)
Reconstructs a previously constructed TableQuantumDesc.
const String & unitColumnName() const
Returns the name of the units column (an empty String is returned if the units are not variable).
void checkUnitsColumn(const TableDesc &td) const
Throw an exception if the variable units column isn't a string column.
const String & columnName() const
Returns the name of the quantum column.
TableQuantumDesc(const TableDesc &td, const String &column, const Vector< String > &unitNames)
Constructs a Quantum column descriptor with the specified Quantum units.
const Vector< String > & getUnits() const
Returns the Quantum column descriptor's units.
void checkColumn(const TableDesc &td) const
Throw an exception if the quantum column doesn't exist.
TableQuantumDesc(const TableDesc &td, const String &column)
Constructs a Quantum column descriptor with null units (Unit == "").
TableQuantumDesc(const TableDesc &td, const String &column, const Vector< Unit > &)
Bool isUnitVariable() const
Returns True if descriptor set for variable units (one per row)
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.