28 #ifndef MEASURES_TABLEMEASREFDESC_H
29 #define MEASURES_TABLEMEASREFDESC_H
41 class TableMeasDescBase;
A 1-D Specialization of the Array class.
Bool isVariable() const
Returns True if the offset varies per row.
Bool isOffsetArray() const
Returns True is the offset is variable and it is an ArrayMeasColumn.
void checkColumn(const TableDesc &td)
Throw an exception if the column doesn't exist or is of the wrong type.
void initTabRefMap()
Fill the reference code mappings for table<->current.
Bool itsRefCodeColInt
Is the reference code column a string column?
Main interface class to a read/write table.
Definition of a Measure in a Table.
static void defaultTypesFunc(Vector< String > &types, Vector< uInt > &codes, const MeasureHolder &)
void write(TableDesc &, TableRecord &measInfo, const TableMeasDescBase &)
Make the Measure value descriptor persistent.
void resetOffset(const Measure &offset)
const String & columnName() const
Return the name of its variable reference code column.
Bool itsHasRefTab
Do the keywords contain the reference codes and types?
Physical quantities within reference frame.
void fillTabRefMap(const MeasureHolder &measHolder)
const Measure & getOffset() const
Return the fixed Measure offset.
static TypesFunc * theirTypesFunc
static void setTypesFunc(TypesFunc *func)
Bool isArray() const
Returns True if the offset varies per array element.
String itsColumn
The name of column containing its variable references.
TableMeasOffsetDesc * itsOffset
Vector< uInt > itsTabRefCodes
Definition of a Measure Reference in a Table.
Bool hasOffset() const
Returns True if the reference has an offset.
TableMeasRefDesc & operator=(const TableMeasRefDesc &that)
Assignment operator (copy semantics).
A holder for Measures to enable record conversions.
Bool isRefCodeColumnInt() const
Is the reference code variable and stored in an integer column?
Bool hasRefTab() const
Do the keywords contain the reference codes and types.
Bool isOffsetVariable() const
Returns True if the offset is variable.
bool Bool
Define the standard types used by Casacore.
TableMeasRefDesc(uInt refCode=0)
Define a fixed MeasRef by supplying its reference code Optionally a Measure offset can be specified...
uInt getRefCode() const
Return the reference code.
A hierarchical collection of named fields of various types.
Vector< String > itsTabRefTypes
const Measure & getOffset() const
Get the (non-variable) measure offset for this column.
void resetRefCode(uInt refCode)
Reset the refCode or offset.
const String & offsetColumnName() const
Return the name of the Measure offset column.
uInt cur2tab(uInt curRefCode) const
void initTabRef(const MeasureHolder &measHolder)
Initialize the table reference codes and types and the maps (mapping a code onto itself).
Bool isRefCodeVariable() const
Is the reference variable?
const String & columnName() const
Gets the name of the column which stores the variable offset.
String: the storage and methods of handling collections of characters.
uInt tab2cur(uInt tabRefCode) const
Reference codes can be persistent in tables.
void writeKeys(TableRecord &measInfo, const TableMeasDescBase &measDesc)
Write the actual keywords.
Define the structure of a Casacore table.
void TypesFunc(Vector< String > &types, Vector< uInt > &codes, const MeasureHolder &)
Set the function used to get all reference codes for a MeasureHolder.
uInt fillMap(Block< Int > &f2t, const Vector< uInt > &codesf, const Vector< String > &typesf, Vector< uInt > &codest, Vector< String > &typest, Int maxnr)
Definition of a Measure Offset in a Table.
Bool empty() const
Test for empty.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.