32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Utilities/DataType.h> 34 #include <casacore/tables/Tables/Table.h> 35 #include <casacore/casa/Containers/SimOrdMap.h> 36 #include <casacore/casa/Utilities/CountedPtr.h> 37 #include <casacore/casa/BasicSL/String.h> 38 #include <casacore/tables/Tables/ColumnDesc.h> 45 template <
class T>
class Block;
301 const String& colMeasureType=
"");
307 const String& keyComment);
A Vector of integers, for indexing into Array<T> objects.
A 1-D Specialization of the Array class.
static SimpleOrderedMap< Int, String > columnMap_p
These are the static ordered maps which contain the above info ColEnum -> name.
void removeColumn(const String &columnName)
Remove columns.
Bool isKeyword(KeyEnum which) const
check to see if a keyword exists
void renameColumn(const String &newName, const String &oldName)
Rename a column.
static ColEnum columnType(const String &name)
Convert a name to a ColEnum.
static const String & columnMeasureType(ColEnum which)
return the MEASURE_TYPE string for a given ColEnum
Create a new table - define shapes, data managers, etc.
static KeyEnum keywordType(const String &name)
Main interface class to a read/write table.
const String & unit(const String &which) const
Return the UNIT keyword value associated with the specified column.
Bool isColumnWritable(const String &columnName) const
Test if the given column is writable.
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...
Bool isScalar(ColEnum which) const
Information about scalar vs array of a column.
Bool isColumn(ColEnum which) const
ColEnum convenience functions.
static SimpleOrderedMap< Int, String > colMeasureTypeMap_p
ColEnum -> MEASURE_TYPE string.
void removeColumn(const String &columnName)
Remove a column from a table No exception is thrown if this invalidates the table in order to permit ...
const TableDesc & tableDesc() const
Get the table description.
Bool isColumnWritable(const String &columnName) const
static DataType keywordDataType(KeyEnum which)
TableExprNode key(const String &keywordName) const
Create a TableExprNode object for a column or for a keyword in the table keyword set.
static const String & columnUnit(ColEnum which)
return the UNIT string for a given ColEnum
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.
static SimpleOrderedMap< Int, String > keywordMap_p
KeyEnum -> name.
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.
static const String & keywordName(KeyEnum which)
KeyEnum convenience functions.
Bool isArray(ColEnum which) const
static DataType columnDataType(ColEnum which)
return the data type for a given ColEnum
Simple map with keys ordered.
Referenced counted pointer for constant data.
static void addKeyToDesc(TableDesc &tabDesc, KeyEnum key)
add a keyword to a TableDesc An exception is thrown for an invalid data type.
const TableLock & lockOptions() const
Get the locking options.
static void colMapDef(ColEnum col, const String &colName, DataType colType, const String &colComment, const String &colUnit="", const String &colMeasureType="")
Define an entry in the column maps.
Bool validate() const
validate self (make sure that this MS is valid)
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
static SimpleOrderedMap< Int, Int > keyDTypeMap_p
KeyEnum -> DataType.
static const String & columnStandardComment(ColEnum which)
return the standard comment for a given ColEnum
static const TableDesc & requiredTableDesc()
return the required table description
bool Bool
Define the standard types used by Casacore.
MSTable & operator=(const MSTable< ColEnum, KeyEnum > &)
Assignment operator, reference semantics.
Class to hold table lock options.
Bool isColumnWritable(uInt columnIndex) const
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.
Bool isColumnWritable(ColEnum which) const
check to see if a column is writable
void removeColumn(const Vector< String > &columnNames)
Remove columns from a table.
static CountedPtr< TableDesc > requiredTD_p
The required TableDesc.
TableExprNode col(const String &columnName) const
static SimpleOrderedMap< Int, Int > colDTypeMap_p
ColEnum -> DataType.
static SimpleOrderedMap< Int, String > colUnitMap_p
ColEnum -> UNIT string.
const String & unit(ColEnum which) const
A Table intended to hold astronomical data.
static void keyMapDef(KeyEnum key, const String &keyName, DataType keyType, const String &keyComment)
Define an entry in the keyword maps.
String: the storage and methods of handling collections of characters.
MSTable()
These constructors mirror the Table ones.
static SimpleOrderedMap< Int, String > keyCommentMap_p
KeyEnum -> comment string.
Define the structure of a Casacore table.
const String & tableName() const
Get the table name.
Bool isNull() const
Test if the object is null, i.e.
void renameColumn(const String &newName, const String &oldName)
Rename a column No exception is thrown if this invalidates the table in order to permit more complex ...
this file contains all the compiler specific defines
Option
Enumerate the possible column options.
static const String & keywordStandardComment(KeyEnum which)
TableOption
Define the possible options how a table can be opened.
static SimpleOrderedMap< Int, String > colCommentMap_p
ColEnum -> comment string.