28 #ifndef TABLES_TABLECOPY_H
29 #define TABLES_TABLECOPY_H
93 const Record& dataManagerInfo,
226 preserveTileShape); }
231 const String& dataManagerName,
239 #ifndef CASACORE_NO_AUTO_TEMPLATES
240 #include <casacore/tables/Tables/TableCopy.tcc>
241 #endif //# CASACORE_NO_AUTO_TEMPLATES
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 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.
rownr_t nrow() const
Get the number of rows.
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, const Record &newdmInfo)
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.
Options defining how table files are organized.
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.
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.
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.
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 fillColumnData(Table &table, const String &column, const T &value)
Fill the table column with the given value.
uInt64 rownr_t
Define the type of a row number in a table.
String: the storage and methods of handling collections of characters.
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 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.