Go to the documentation of this file.
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);
Define the structure of a Casacore table.
Bool empty() const
Test for empty.
A class for defining Quantum columns in Tables.
Read/write access to a table column.
Vector< String > itsUnitsName
The Quantum's unit as a string.
TableQuantumDesc(const TableDesc &td, const String &column, const Char *unitCol)
A hierarchical collection of named fields of various types.
void checkColumn(const TableDesc &td) const
Throw an exception if the quantum column doesn't exist.
static Bool hasQuanta(const TableColumn &column)
Does this column contain table quanta?
TableQuantumDesc(const TableDesc &td, const String &column, const Unit &)
Constructs a Quantum column descriptor with the specified Quantum unit.
static TableQuantumDesc * reconstruct(const TableDesc &td, const String &column)
Reconstructs a previously constructed TableQuantumDesc.
TableQuantumDesc(const TableDesc &td, const String &column)
Constructs a Quantum column descriptor with null units (Unit == "").
Bool isUnitVariable() const
Returns True if descriptor set for variable units (one per row)
TableQuantumDesc & operator=(const TableQuantumDesc &that)
Assignment.
void checkUnitsColumn(const TableDesc &td) const
Throw an exception if the variable units column isn't a string column.
const Vector< String > & getUnits() const
Returns the Quantum column descriptor's units.
const String & columnName() const
Returns the name of the quantum column.
TableQuantumDesc(const TableDesc &td, const String &column, const Vector< Unit > &)
Main interface class to a read/write table.
TableQuantumDesc(const TableDesc &td, const String &column, const Vector< String > &unitNames)
Constructs a Quantum column descriptor with the specified Quantum units.
String itsUnitsColName
Name of units column if units are variable.
void write(TableDesc &)
Makes the TableQuantumDesc persistent (updates the Table Descriptor).
this file contains all the compiler specific defines
const String & unitColumnName() const
Returns the name of the units column (an empty String is returned if the units are not variable).
void writeKeys(TableRecord &columnKeyset)
Write the actual keywords.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
A 1-D Specialization of the Array class.
TableQuantumDesc(const TableDesc &td, const String &column, const String &unitCol)
Constructs a Quantum column descriptor with variable units stored in unitCol.
TableQuantumDesc(const TableQuantumDesc &that)
Copy constructor (copy semantics).
String itsColName
Name of column which stores the Quantum's values.