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,
A Vector of integers, for indexing into Array<T> objects.
static Table makeEmptyTable(const String &newName, const Record &dataManagerInfo, const Table &tab, Table::TableOption option, Table::EndianFormat endianFormat, Bool replaceTSM=True, Bool noRows=False)
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...
A 1-D Specialization of the Array class.
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...
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.
static void copyInfo(Table &out, const Table &in)
Copy the table info block from input to output 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 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 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.
A hierarchical collection of named fields of various types.
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.
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.
this file contains all the compiler specific defines
TableOption
Define the possible options how a table can be opened.