Go to the documentation of this file.
28 #ifndef MEASURES_TABLEMEASDESCBASE_H
29 #define MEASURES_TABLEMEASDESCBASE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/measures/TableMeasures/TableMeasValueDesc.h>
34 #include <casacore/measures/TableMeasures/TableMeasRefDesc.h>
35 #include <casacore/measures/TableMeasures/TableMeasType.h>
36 #include <casacore/casa/Quanta/Unit.h>
37 #include <casacore/casa/Arrays/Vector.h>
48 template<
class T>
class Quantum;
const String & columnName() const
Get the name of the underlying column.
Define the structure of a Casacore table.
void write(TableDesc &)
Makes the descriptor persistent.
TableMeasType itsMeasType
Definition of a Measure Value in a Table.
A holder for Measures to enable record conversions.
void resetUnits(const Vector< Unit > &units)
Bool isOffsetArray() const
Returns True is the offset is variable and it is an ArrayMeasColumn.
Definition of a Measure Reference in a Table.
const String & refType(uInt refCode) const
Translates the refCode for the descriptors measure type.
const String & refColumnName() const
Returns the name of the ref code column when the ref code is variable.
uInt getRefCode() const
Return the reference code.
uInt refCode(const String &refString) const
Returns the reference code for this object given a string.
Read/write access to a table column.
Physical quantities within reference frame.
void initTabRef(const MeasureHolder &measHolder)
Set the initial reference codes and types in the table.
Bool isOffsetVariable() const
Returns True if the offset is variable.
const Measure & getOffset() const
Return the fixed Measure offset.
void resetOffset(const Measure &offset)
uInt refCode(const String &refString) const
Returns the reference code for this object given a string.
uInt getRefCode() const
Return the reference code.
Definition of a Measure in a Table.
const Vector< Unit > & getUnits() const
Return the Units of the Measure values.
TableMeasDescBase(const TableMeasValueDesc &, const TableMeasRefDesc &)
Constructor with value and reference descriptors.
static TableMeasDescBase * reconstruct(const Table &tab, const String &columnName)
Reconstructs the object for the given table and column name.
const TableMeasRefDesc & getRefDesc() const
Returns a reference to its measure reference descriptor.
TableMeasValueDesc itsValue
const String & offsetColumnName() const
Get the name of the offset column.
const String & type() const
Returns the descriptors measure type as a String.
Definition of a Measure column in a Table.
const Measure & getOffset() const
Returns a reference to the offset.
Main interface class to a read/write table.
const String & type() const
Returns the descriptor's measure type as a String.
const String & offsetColumnName() const
Return the name of the Measure offset column.
virtual TableMeasDescBase * clone() const
Clone the object.
virtual ~TableMeasDescBase()
TableMeasDescBase(const TableMeasDescBase &that)
Copy constructor.
void setMeasUnits(const Measure &meas, const Vector< Quantum< Double > > &val, const Vector< Unit > &units)
Set the measure and possible units.
const String & refType(uInt refCode) const
Translates the refCode for the descriptors measure type.
void resetRefCode(uInt refCode)
Reset the refCode or offset.
TableMeasDescBase()
Null constructor.
this file contains all the compiler specific defines
TableMeasDescBase & operator=(const TableMeasDescBase &that)
Assignment operator.
Bool isRefCodeVariable() const
Returns True if the reference varies per row.
Bool isRefCodeVariable() const
Is the reference variable?
const String & columnName() const
Return the name of its variable reference code column.
const String & columnName() const
Get the name of the underlying column.
static Bool hasMeasures(const TableColumn &column)
Does this column contain table measures?
Bool isOffsetArray() const
Returns True if the offset is variable and is stored in an ArrayMeasColumn, i.e., offsets are stored ...
void writeIfOld(const Table &)
Make the descriptor persistent if there was no refcode vector.
Bool isOffsetVariable() const
Returns True if the offset is variable.
Bool hasOffset() const
Returns True if the reference has an offset.
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.
Bool hasOffset() const
Returns True if an offset has been defined.
void resetOffset(const Measure &offset)
void resetRefCode(uInt refCode)
Reset the refCode, offset, or units.