28 #ifndef TABLES_TABLECOPY_H
29 #define TABLES_TABLECOPY_H
93 const Record& dataManagerInfo,
223 preserveTileShape); }
266 const String& dataManagerName);
273 #ifndef CASACORE_NO_AUTO_TEMPLATES
274 #include <casacore/tables/Tables/TableCopy.tcc>
275 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
static void adjustDesc(TableDesc &tabDesc, const Record &dminfo)
Adjust the data manager types and groups and the hypercolumn definitions to the actual data manager i...
A 1-D Specialization of the Array class.
static Table makeEmptyTable(const String &newName, const Record &dataManagerInfo, const Table &tab, Table::TableOption option, Table::EndianFormat endianFormat, Bool replaceTSM=True, Bool noRows=False, const StorageOption &=StorageOption())
Make an (empty) table with the given description.
static void adjustDesc(TableDesc &tabDesc, const Record &dminfo)
Adjust the data manager types and groups and the hypercolumn definitions to the actual data manager i...
static void fillArrayColumn(Table &table, const String &column, const Array< T > &value)
Fill the table column with the given array.
EndianFormat
Define the possible endian formats in which table data can be stored.
static void copyRows(Table &out, const Table &in, Bool flush=True)
Copy rows from the input to the output.
Main interface class to a read/write table.
Envelope class for the description of a table column.
static void doCloneColumn(const Table &fromTable, const String &fromColumn, Table &toTable, const ColumnDesc &newColumn, const String &dataManagerName)
static void copyInfo(Table &out, const Table &in)
Copy the table info block from input to output table.
static void cloneColumn(const Table &fromTable, const String &fromColumn, Table &toTable, const String &newColumn, const String &dataManagerName=String())
Clone a column in the from table to a new column in the to table.
static Table makeEmptyMemoryTable(const String &newName, const Table &tab, Bool noRows=False)
Make an (empty) memory table with the same layout as the input one.
static void cloneColumnTyped(const Table &fromTable, const String &fromColumn, Table &toTable, const String &newColumn, const String &dataManagerName=String())
Cloning as above, but the data type is set to the template parameter.
static Record adjustStMan(const Record &dminfo, const String &dmType, Bool replaceMSM=True)
Replace non-writable storage managers by the given storage manager (usually StandardStMan or Incremen...
Options defining how table files are organized.
static void setTiledStMan(Record &dminfo, const Vector< String > &columns, const String &dmType, const String &dmName, const IPosition &defaultTileShape)
Set the data managers of the given column(s) to the given tiled storage manager (normally TiledShapeS...
static Vector< String > removeDminfoColumns(Record &dminfo, const Vector< String > &columns, const String &keepType=String())
Remove the columns from the dminfo record and return a vector with the names of the columns actually ...
static void setTiledStMan(Record &dminfo, const Vector< String > &columns, const String &dmType, const String &dmName, const IPosition &defaultTileShape)
Set the data managers of the given column(s) to the given tiled storage manager (normally TiledShapeS...
static Vector< String > removeDminfoColumns(Record &dminfo, const Vector< String > &columns, const String &keepType=String())
Remove the columns from the dminfo record and return a vector with the names of the columns actually ...
Class with static functions for copying a table.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
uInt nrow() const
Get the number of rows.
static void fillColumnData(Table &table, const String &column, const char *value)
Specialization to handle a C-string correctly.
A hierarchical collection of named fields of various types.
template <class T, class U> class vector;
static void fillColumnData(Table &table, const String &column, const T &value)
Fill the table column with the given value.
static void adjustTSM(TableDesc &tabDesc, Record &dminfo)
Replace TiledDataStMan by TiledShapeStMan in the DataManagerInfo record.
String: the storage and methods of handling collections of characters.
static Record adjustStMan(const Record &dminfo)
Replace non-writable storage managers by StandardStMan.
Define the structure of a Casacore table.
static void copyColumnData(const Table &fromTable, const String &fromColumn, Table &toTable, const String &toColumn, Bool preserveTileShape=True)
Copy the data from one column to another.
TableType
Define the possible table types.
static void adjustTSM(TableDesc &tabDesc, Record &dminfo)
Replace TiledDataStMan by TiledShapeStMan in the DataManagerInfo record.
static void copySubTables(Table &out, const Table &in, Bool noRows=False, const Block< String > &omit=Block< String >())
Copy all subtables (in table and column keywords) from input to output table.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
TableOption
Define the possible options how a table can be opened.
static void fillColumnData(Table &table, const String &column, const char *value, const Table &fromTable, const String &fromColumn, Bool preserveTileShape=True)
Specialization to handle a C-string correctly.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.