casa
$Rev:20696$
|
Definition of a Measure column in a Table. More...
#include <TableMeasType.h>
Public Member Functions | |
TableMeasType () | |
TableMeasType (const Measure &) | |
Construct from the given type of measure. | |
TableMeasType (const TableMeasType &that) | |
Copy constructor (copy semantics). | |
~TableMeasType () | |
TableMeasType & | operator= (const TableMeasType &that) |
Assignment operator (copy semantics) | |
const String & | type () const |
Returns the descriptor's measure type as a String. | |
const String & | refType (uInt refCode) const |
Translates the refCode for the descriptors measure type. | |
uInt | refCode (const String &refString) const |
Returns the reference code for this object given a string. | |
void | toRecord (RecordInterface &rec) |
Creates a record from the MeasureHolder. | |
Private Attributes | |
Int | itsNtypes |
const String * | itsStypes |
const uInt * | itsTyps |
MeasureHolder | itsMeasHolder |
Definition of a Measure column in a Table.
Internal
This class is a helper class for TableMeasDescBase to know the type of measure it is dealing with.
It eases the process of converting reference codes to their strings and vice-versa. It also writes the measure type to a record to assist in making table measure definitions persistent.
Create the object for an epoch measure. TableMeasType mtype (MEpoch()); Get the code for the given string. uInt code = mtype.refCode ("UTC");
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 85 of file TableMeasType.h.
casa::TableMeasType::TableMeasType | ( | const Measure & | ) | [explicit] |
Construct from the given type of measure.
casa::TableMeasType::TableMeasType | ( | const TableMeasType & | that | ) |
Copy constructor (copy semantics).
TableMeasType& casa::TableMeasType::operator= | ( | const TableMeasType & | that | ) |
Assignment operator (copy semantics)
uInt casa::TableMeasType::refCode | ( | const String & | refString | ) | const |
Returns the reference code for this object given a string.
Throws an exception if the refString is invalid for this object.
Referenced by casa::TableMeasDescBase::refCode().
const String& casa::TableMeasType::refType | ( | uInt | refCode | ) | const |
Translates the refCode for the descriptors measure type.
Referenced by casa::TableMeasDescBase::refType().
void casa::TableMeasType::toRecord | ( | RecordInterface & | rec | ) |
Creates a record from the MeasureHolder.
const String& casa::TableMeasType::type | ( | ) | const |
Returns the descriptor's measure type as a String.
Referenced by casa::TableMeasDescBase::type().
Definition at line 118 of file TableMeasType.h.
Int casa::TableMeasType::itsNtypes [private] |
Definition at line 115 of file TableMeasType.h.
const String* casa::TableMeasType::itsStypes [private] |
Definition at line 116 of file TableMeasType.h.
const uInt* casa::TableMeasType::itsTyps [private] |
Definition at line 117 of file TableMeasType.h.