casa
$Rev:20696$
|
An implementation class for the MeasurementSet to share code. More...
#include <MSTableImpl.h>
Static Public Member Functions | |
static Int | mapType (const SimpleOrderedMap< Int, String > &map, const String &name) |
Convert a name to a ColEnum,. | |
static void | addColumnToDesc (TableDesc &td, const String &colName, Int colDType, const String &colComment, const String &colUnit, const String &colMeasure, Int ndim, const IPosition &shape, Int option, const String &refCol) |
add a column to a TableDesc An exception is thrown for an invalid data type. | |
static void | addKeyToDesc (TableDesc &td, const String &keyName, Int keyDType, const String &keyComment) |
add a keyword to a TableDesc An exception is thrown for an invalid data type. | |
static void | addMeasColumn (TableDesc &td, const String &colName, const String &colMeasure, const String &refCol) |
add a MeasureColumn for the specified Measure, with default reference | |
static void | addColumnCompression (TableDesc &, const String &colName, Bool autoScale, const String &type) |
Add the compress option for the given column to the TableDesc. | |
static SetupNewTable & | setupCompression (SetupNewTable &) |
Setup the compression data managers if needed. | |
static void | colMapDef (SimpleOrderedMap< Int, String > &colMap, SimpleOrderedMap< Int, Int > &colDTypeMap, SimpleOrderedMap< Int, String > &colCommentMap, SimpleOrderedMap< Int, String > &colUnitMap, SimpleOrderedMap< Int, String > &colMeasureTypeMap, Int col, const String &colName, Int colType, const String &colComment, const String &colUnit, const String &colMeasureType) |
Define an entry in the column maps. | |
static void | keyMapDef (SimpleOrderedMap< Int, String > &keyMap, SimpleOrderedMap< Int, Int > &keyDTypeMap, SimpleOrderedMap< Int, String > &keyCommentMap, Int key, const String &keyName, Int keyType, const String &keyComment) |
Define an entry in the keyword maps. | |
static Bool | validate (const TableDesc &tabDesc, const TableDesc &requiredTD) |
tableDesc convenience functions | |
static Bool | validate (const TableRecord &tabRec, const TableDesc &requiredTD) |
check that the keyword set is valid | |
static Table | referenceCopy (const Table &tab, const String &newTableName, const Block< String > &writableColumns) |
Return a table that references all columns in this table except for those given in writableColumns, those are empty and writable. | |
static void | init () |
Initialize all MeasurementSet static mappings. | |
Static Private Attributes | |
static Bool | initialized_p |
An implementation class for the MeasurementSet to share code.
Internal
The MSTableImpl implements non-templated static functions shared by all MSTable objects.
MSTableImpl is only for internal use by the MeasurementSet base class MSTable.
The reasons for existance for this class are: sharing of code between the various MeasurementSet Tables and avoiding duplicate code in the instantiations of MSTable
Definition at line 82 of file MSTableImpl.h.
static void casa::MSTableImpl::addColumnCompression | ( | TableDesc & | , |
const String & | colName, | ||
Bool | autoScale, | ||
const String & | type | ||
) | [static] |
Add the compress option for the given column to the TableDesc.
static void casa::MSTableImpl::addColumnToDesc | ( | TableDesc & | td, |
const String & | colName, | ||
Int | colDType, | ||
const String & | colComment, | ||
const String & | colUnit, | ||
const String & | colMeasure, | ||
Int | ndim, | ||
const IPosition & | shape, | ||
Int | option, | ||
const String & | refCol | ||
) | [static] |
add a column to a TableDesc An exception is thrown for an invalid data type.
This indicates a programming error in this class when this occurs. If option!=0 shape is used to set the shape of the column and option defines the type of column (ColumnDesc::Fixed/Direct). If option==0, shape is ignored and ndim is used to specify the array dimension if any. If refCol is not empty, a column with variable reference will be created, note that refCol should already exist in td.
static void casa::MSTableImpl::addKeyToDesc | ( | TableDesc & | td, |
const String & | keyName, | ||
Int | keyDType, | ||
const String & | keyComment | ||
) | [static] |
static void casa::MSTableImpl::addMeasColumn | ( | TableDesc & | td, |
const String & | colName, | ||
const String & | colMeasure, | ||
const String & | refCol | ||
) | [static] |
add a MeasureColumn for the specified Measure, with default reference
static void casa::MSTableImpl::colMapDef | ( | SimpleOrderedMap< Int, String > & | colMap, |
SimpleOrderedMap< Int, Int > & | colDTypeMap, | ||
SimpleOrderedMap< Int, String > & | colCommentMap, | ||
SimpleOrderedMap< Int, String > & | colUnitMap, | ||
SimpleOrderedMap< Int, String > & | colMeasureTypeMap, | ||
Int | col, | ||
const String & | colName, | ||
Int | colType, | ||
const String & | colComment, | ||
const String & | colUnit, | ||
const String & | colMeasureType | ||
) | [static] |
Define an entry in the column maps.
static void casa::MSTableImpl::init | ( | ) | [static] |
Initialize all MeasurementSet static mappings.
static void casa::MSTableImpl::keyMapDef | ( | SimpleOrderedMap< Int, String > & | keyMap, |
SimpleOrderedMap< Int, Int > & | keyDTypeMap, | ||
SimpleOrderedMap< Int, String > & | keyCommentMap, | ||
Int | key, | ||
const String & | keyName, | ||
Int | keyType, | ||
const String & | keyComment | ||
) | [static] |
Define an entry in the keyword maps.
static Int casa::MSTableImpl::mapType | ( | const SimpleOrderedMap< Int, String > & | map, |
const String & | name | ||
) | [static] |
Convert a name to a ColEnum,.
static Table casa::MSTableImpl::referenceCopy | ( | const Table & | tab, |
const String & | newTableName, | ||
const Block< String > & | writableColumns | ||
) | [static] |
Return a table that references all columns in this table except for those given in writableColumns, those are empty and writable.
static SetupNewTable& casa::MSTableImpl::setupCompression | ( | SetupNewTable & | ) | [static] |
Setup the compression data managers if needed.
static Bool casa::MSTableImpl::validate | ( | const TableDesc & | tabDesc, |
const TableDesc & | requiredTD | ||
) | [static] |
tableDesc convenience functions
check that a TableDesc is valid
static Bool casa::MSTableImpl::validate | ( | const TableRecord & | tabRec, |
const TableDesc & | requiredTD | ||
) | [static] |
check that the keyword set is valid
Bool casa::MSTableImpl::initialized_p [static, private] |
Definition at line 171 of file MSTableImpl.h.