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,
226 preserveTileShape); }
231 const String& dataManagerName,
239 #ifndef CASACORE_NO_AUTO_TEMPLATES
240 #include <casacore/tables/Tables/TableCopy.tcc>
String: the storage and methods of handling collections of characters.
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 void fillArrayColumn(Table &table, const String &column, const Array< T > &value)
Fill the table column with the given array.
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.
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 cloneColumn(const Table &fromTable, const String &fromColumn, Table &toTable, const String &newColumn, const String &dataManagerName=String(), const Record &newdmInfo=Record())
Clone a column in the from table to a new column in the to table.
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 cloneColumnTyped(const Table &fromTable, const String &fromColumn, Table &toTable, const String &newColumn, const String &dataManagerName=String(), const Record &newdmInfo=Record())
Cloning as above, but the data type is set to the template parameter.
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 copyInfo(Table &out, const Table &in)
Copy the table info block from input to output table.
static void fillColumnData(Table &table, const String &column, const T &value)
Fill the table column with the given value.
static void copyRows(Table &out, const Table &in, rownr_t startout, rownr_t startin, rownr_t nrrow, Bool flush=True)
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 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.
static void fillColumnData(Table &table, const String &column, const char *value)
Specialization to handle a C-string correctly.
static void doCloneColumn(const Table &fromTable, const String &fromColumn, Table &toTable, const ColumnDesc &newColumn, const String &dataManagerName, const Record &newdmInfo)
static void copyRows(Table &out, const Table &in, Bool flush=True)
Copy rows from the input to the output.
EndianFormat
Define the possible endian formats in which table data can be stored.
TableOption
Define the possible options how a table can be opened.
rownr_t nrow() const
Get the number of rows.
TableType
Define the possible table types.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
uInt64 rownr_t
Define the type of a row number in a table.