45 template <
class T>
class Block;
150 typedef typename MSEnum::PredefinedColumns
ColEnum;
151 typedef typename MSEnum::PredefinedKeywords
KeyEnum;
308 const String& colMeasureType=
"");
315 const String& keyComment);
std::map< Int, String > colCommentMap_p
ColEnum -> comment string.
A Vector of integers, for indexing into Array<T> objects.
static const String & columnMeasureType(ColEnum which)
return the MEASURE_TYPE string for a given ColEnum
MSEnum::PredefinedKeywords KeyEnum
Bool isColumn(ColEnum which) const
ColEnum convenience functions.
std::map< Int, String > keyCommentMap_p
KeyEnum -> comment string.
Create a new table - define shapes, data managers, etc.
static void colMapDef(MSTableMaps &maps, ColEnum col, const String &colName, DataType colType, const String &colComment, const String &colUnit="", const String &colMeasureType="")
Define an entry in the column maps.
static KeyEnum keywordType(const String &name)
Main interface class to a read/write table.
static DataType columnDataType(const MSTableMaps &maps, ColEnum which)
Bool isScalar(ColEnum which) const
Information about scalar vs array of a column.
Bool isColumnWritable(const String &columnName) const
PredefinedColumns
The SYSCAL table colums with predefined meaning.
Int mapType(const std::map< Int, String > &, const String &name) const
static const String & keywordName(KeyEnum which)
KeyEnum convenience functions.
static ColEnum columnType(const String &name)
Convert a name to a ColEnum.
std::map< Int, String > colUnitMap_p
ColEnum -> UNIT string.
std::map< Int, String > columnMap_p
ColEnum -> name.
MSTable()
These constructors mirror the Table ones.
Bool isColumnWritable(const String &columnName) const
Test if the given column is writable.
std::map< Int, String > keywordMap_p
KeyEnum -> name.
static const String & keywordStandardComment(const MSTableMaps &maps, KeyEnum which)
MSTable & operator=(const MSTable< MSEnum > &)
Assignment operator, reference semantics.
const String & unit(const String &which) const
Return the UNIT keyword value associated with the specified column.
Bool isColumnWritable(ColEnum which) const
check to see if a column is writable
static const String & columnName(const MSTableMaps &maps, ColEnum which)
Convert a ColEnum to the actual column name.
const String & tableName() const
Get the table name.
Int columnType(const String &name) const
Convert a name to a ColEnum or KeyEnum.
Bool isArray(ColEnum which) const
PredefinedKeywords
Keywords with a predefined meaning.
static const String & keywordStandardComment(KeyEnum which)
static const String & columnStandardComment(ColEnum which)
return the standard comment for a given ColEnum
static const String & keywordName(const MSTableMaps &maps, KeyEnum which)
static void keyMapDef(MSTableMaps &maps, KeyEnum key, const String &keyName, DataType keyType, const String &keyComment)
Define an entry in the keyword maps.
static const String & columnStandardComment(const MSTableMaps &maps, ColEnum which)
static const String & columnUnit(const MSTableMaps &maps, ColEnum which)
Bool isColumnWritable(uInt columnIndex) const
std::map< Int, Int > colDTypeMap_p
ColEnum -> DataType.
static void addKeyToDesc(TableDesc &, KeyEnum key)
add a keyword to a TableDesc An exception is thrown for an invalid data type.
std::map< Int, Int > keyDTypeMap_p
KeyEnum -> DataType.
static const String & columnUnit(ColEnum which)
return the UNIT string for a given ColEnum
static const TableDesc & requiredTableDesc()
return the required table description
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
Bool validate() const
validate self (make sure that this MS is valid)
const TableLock & lockOptions() const
Get the locking options.
static DataType keywordDataType(const MSTableMaps &maps, KeyEnum which)
Bool isKeyword(KeyEnum which) const
check to see if a keyword exists
bool Bool
Define the standard types used by Casacore.
MSEnum::PredefinedColumns ColEnum
Define the column and keyword enuym types.
TableExprNode key(const String &keywordName) const
Create a TableExprNode object for a column or for a keyword in the table keyword set...
Table referenceCopy(const String &newTableName, const Block< String > &writableColumns) const
Return a table that references all columns in this table except for those given in writableColumns...
static const String & columnName(ColEnum which)
Convert a ColEnum to the actual column name.
static void addColumnCompression(TableDesc &td, ColEnum which, Bool autoScale=True, const String &type=String())
Add the compress option for the given column to the TableDesc.
Class to hold table lock options.
TableExprNode col(const String &columnName) const
static void addColumnToDesc(TableDesc &tabDesc, ColEnum which, Int ndim=-1, const String &refCol="")
add a column to a TableDesc An exception is thrown for an invalid data type.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
A hierarchical collection of named fields of various types.
Int keywordType(const String &name) const
const TableDesc & tableDesc() const
Get the table description.
uInt64 rownr_t
Define the type of a row number in a table.
A struct holding the maps used in MSTable.
Bool isNull() const
Test if the object is null, i.e.
static const String & columnMeasureType(const MSTableMaps &maps, ColEnum which)
TableDesc requiredTD_p
The required TableDesc.
A Table intended to hold astronomical data.
static MSTableMaps & getMaps()
Get the static struct containing all column and keyword mappings.
String: the storage and methods of handling collections of characters.
Define the structure of a Casacore table.
static DataType columnDataType(ColEnum which)
return the data type for a given ColEnum
const String & unit(ColEnum which) const
static DataType keywordDataType(KeyEnum which)
Option
Enumerate the possible column options.
std::map< Int, String > colMeasureTypeMap_p
ColEnum -> MEASURE_TYPE string.
TableOption
Define the possible options how a table can be opened.