|
casacore
|
#include <TableMeasValueDesc.h>
Public Member Functions | |
| TableMeasValueDesc () | |
| Null constructor. | |
| TableMeasValueDesc (const TableDesc &, const String &columnName) | |
| Construct the MeasValue column descriptor for the given column. | |
| TableMeasValueDesc (const String &columnName) | |
| Construct the MeasValue column descriptor for the given column. | |
| TableMeasValueDesc (const Char *columnName) | |
| TableMeasValueDesc (const TableMeasValueDesc &that) | |
| Copy constructor. | |
| ~TableMeasValueDesc () | |
| TableMeasValueDesc & | operator= (const TableMeasValueDesc &that) |
| Assignment operator. | |
| void | write (TableDesc &, const TableRecord &measInfo) |
| Write the type, unit, and MEASINFO record into the column keywords. | |
| void | write (Table &, const TableRecord &measInfo) |
| const String & | columnName () const |
| Get the name of the underlying column. | |
Private Member Functions | |
| void | writeKeys (TableRecord &columnKeyset, const TableRecord &measInfo) |
| Write the actual keywords. | |
| void | checkColumn (const TableDesc &td) const |
| Throw an exception if the quantum column doesn't exist or is of the wrong type. | |
Private Attributes | |
| String | itsColumn |
Definition of a Measure Value in a Table.
Public interface
TableMeasValueDesc is a class for setting up the Measure value component of the TableMeasDesc in the TableMeasures system. Its purpose it to specify the Table column to be used as a Measure column through which Measures are subsequently written to and read from via either an ArrayMeasColumn or ScalarMeasColumn object.
The column used as the Measure column is always an ArrayColumn<Double> irrespective of whether it is to store scalars or arrays of Measures and irrespective of the type of Measure.
For an example of the use of the TableMeasValueDesc class in the context of a full TableMeasDesc declaration see class TableMeasDesc.
Creating the required keyword for the definition of a Measure in a Table is somewhat complicated. This class assists in that process.
Definition at line 105 of file TableMeasValueDesc.h.
| casacore::TableMeasValueDesc::TableMeasValueDesc | ( | ) |
Null constructor.
Referenced by operator=(), and TableMeasValueDesc().
Construct the MeasValue column descriptor for the given column.
The column must be a column of type Double and should exist in the TableDesc.
References columnName().
|
inline |
Construct the MeasValue column descriptor for the given column.
Checking if the column exists is done in the write function.
Definition at line 119 of file TableMeasValueDesc.h.
References columnName(), and itsColumn.
|
inline |
Definition at line 121 of file TableMeasValueDesc.h.
References columnName(), and itsColumn.
| casacore::TableMeasValueDesc::TableMeasValueDesc | ( | const TableMeasValueDesc & | that | ) |
Copy constructor.
References TableMeasValueDesc().
| casacore::TableMeasValueDesc::~TableMeasValueDesc | ( | ) |
|
private |
Throw an exception if the quantum column doesn't exist or is of the wrong type.
|
inline |
Get the name of the underlying column.
Definition at line 141 of file TableMeasValueDesc.h.
References itsColumn.
Referenced by TableMeasValueDesc(), TableMeasValueDesc(), and TableMeasValueDesc().
| TableMeasValueDesc & casacore::TableMeasValueDesc::operator= | ( | const TableMeasValueDesc & | that | ) |
Assignment operator.
References TableMeasValueDesc().
| void casacore::TableMeasValueDesc::write | ( | Table & | , |
| const TableRecord & | measInfo ) |
| void casacore::TableMeasValueDesc::write | ( | TableDesc & | , |
| const TableRecord & | measInfo ) |
Write the type, unit, and MEASINFO record into the column keywords.
It checks if the column exists in the given table description.
|
private |
Write the actual keywords.
|
private |
Definition at line 145 of file TableMeasValueDesc.h.
Referenced by columnName(), TableMeasValueDesc(), and TableMeasValueDesc().