Go to the documentation of this file.
28 #ifndef TABLES_TABLECOPY_H
29 #define TABLES_TABLECOPY_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/tables/DataMan/DataManInfo.h>
35 #include <casacore/tables/Tables/Table.h>
36 #include <casacore/casa/Arrays/Vector.h>
37 #include <casacore/casa/Containers/Record.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
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...
TableType
Define the possible table types.
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 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.
EndianFormat
Define the possible endian formats in which table data can be stored.
static void adjustTSM(TableDesc &tabDesc, Record &dminfo)
Replace TiledDataStMan by TiledShapeStMan in the DataManagerInfo record.
static void fillColumnData(Table &table, const String &column, const T &value, const Table &fromTable, const String &fromColumn, Bool preserveTileShape=True)
Fill the table column with the given value.
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...
static void fillColumnData(Table &table, const String &column, const char *value)
Specialization to handle a C-string correctly.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
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 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 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 copyRows(Table &out, const Table &in, uInt startout, uInt startin, uInt nrrow, Bool flush=True)
static void doCloneColumn(const Table &fromTable, const String &fromColumn, Table &toTable, const ColumnDesc &newColumn, const String &dataManagerName)
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.
this file contains all the compiler specific defines
uInt nrow() const
Get the number of rows.
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 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.
static void copyRows(Table &out, const Table &in, Bool flush=True)
Copy rows from the input to the output.
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 Record adjustStMan(const Record &dminfo)
Replace non-writable storage managers by StandardStMan.
template <class T, class U> class vector;
String: the storage and methods of handling collections of characters.
static void adjustTSM(TableDesc &tabDesc, Record &dminfo)
Replace TiledDataStMan by TiledShapeStMan in the DataManagerInfo record.
static void copyInfo(Table &out, const Table &in)
Copy the table info block from input to output table.
bool Bool
Define the standard types used by Casacore.
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 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.
TableOption
Define the possible options how a table can be opened.
static void copySubTables(TableRecord &outKeys, const TableRecord &inKeys, const String &outName, Table::TableType outType, const Table &in, Bool noRows=False, const Block< String > &omit=Block< String >())
Copy the subtables in the given keywordset to the output keywordset in the table with the given name.
static void fillArrayColumn(Table &table, const String &column, const Array< T > &value)
Fill the table column with the given array.
static void fillColumnData(Table &table, const String &column, const T &value)
Fill the table column with the given value.
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.