28 #ifndef TABLES_SETUPNEWTAB_H 29 #define TABLES_SETUPNEWTAB_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/tables/Tables/Table.h> 35 #include <casacore/tables/Tables/StorageOption.h> 36 #include <casacore/casa/Containers/SimOrdMap.h> 37 #include <casacore/casa/BasicSL/String.h> 44 class VirtualColumnEngine;
371 {
return newTable_p->name(); }
375 {
return newTable_p->option(); }
379 {
return newTable_p->storageOption(); }
383 {
return newTable_p->isMarkedForDelete(); }
387 {
return newTable_p->tableDesc(); }
393 { newTable_p->tableDescPtr()->adjustHypercolumns(old2new,keepUnknown); }
400 { newTable_p->bindColumn (columnName, dm); }
408 { newTable_p->bindColumn (columnName, otherColumn); }
417 { newTable_p->bindGroup (columnGroup, dm, rebind); }
425 { newTable_p->bindAll (dm, rebind); }
430 { newTable_p->bindCreate (spec); }
443 { newTable_p->setShapeColumn (columnName, shape); }
447 {
return newTable_p->isUsed(); }
void setShapeColumn(const String &columnName, const IPosition &shape)
Define the shape of fixed shaped arrays in a column.
A Vector of integers, for indexing into Array<T> objects.
Create a new table - define shapes, data managers, etc.
String tabName_p
Table name.
uInt count_p
Reference count.
Class defining a plain regular table.
StorageOption storageOpt_p
Bool isUsed() const
Test if object is already in use.
Representation for handle class SetupNewTable.
void setInUse()
Set object to in use by a (Plain)Table object.
Bool isMarkedForDelete() const
Test if the table is marked for delete.
uInt & count()
Get access to the reference count.
void setup()
Setup the new table.
Class for a table held in memory.
int option() const
Get the table create option.
TableDesc * tableDescPtr()
Get pointer to table description.
const TableDesc & tableDesc() const
Get the table description.
ColumnSet * columnSetPtr()
Get pointer to column set.
const String & name() const
Get the name of the table.
const StorageOption & storageOption() const
Get the storage option.
Class to manage a set of table columns.
void bindCreate(const Record &spec)
Create data managers and bind the columns using the specifications in the given record (which is obta...
const String & name() const
Get the name of the table.
void bindColumn(const String &columnName, const DataManager &)
Bind a column to the given data manager.
void setShapeColumn(const String &columnName, const IPosition &shape)
Define the shape of fixed shaped arrays in a column.
Bool delete_p
Marked for delete?
Options defining how table files are organized.
SimpleOrderedMap< void *, void * > dataManMap_p
void adjustHypercolumns(const SimpleOrderedMap< String, String > &old2new, Bool keepUnknown)
Adjust the hypercolumn definitions.
void bindGroup(const String &columnGroup, const DataManager &, Bool rebind=False)
Bind a group of columns to the given data manager.
void bindColumn(const String &columnName, const DataManager &dm)
Bind a column to the given data manager.
int option() const
Get the table create option.
void bindAll(const DataManager &, Bool rebind=False)
Bind all columns to the given data manager.
const TableDesc & tableDesc() const
Get the table description.
SetupNewTableRep(const String &tableName, const String &tableDescName, Table::TableOption, const StorageOption &)
Create a new table using the table description with the given name.
int option_p
Constructor options.
const StorageOption & storageOption() const
Get the storage option.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
void bindColumn(const String &columnName, const String &otherColumn)
Bind a column to the given data manager of the other column.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
Bool isUsed() const
Test if object is already in use.
void bindAll(const DataManager &dm, Bool rebind=False)
Bind all columns to the given data manager.
DataManager * getDataManager(const DataManager &dataMan)
Get the internal data manager object for the given data manager.
void bindGroup(const String &columnGroup, const DataManager &dm, Bool rebind=False)
Bind a group of columns to the given data manager.
Bool isMarkedForDelete() const
Test if the table is marked for delete.
Abstract base class for a data manager.
void handleUnbound()
Make a data manager for all unbound columns.
void handleUnbound()
Make a data manager for all unbound columns.
void bindCreate(const Record &spec)
Create data managers and bind the columns using the specifications in the given record (which is obta...
String: the storage and methods of handling collections of characters.
SetupNewTableRep * newTable_p
Actual object.
Define the structure of a Casacore table.
SetupNewTableRep & operator=(const SetupNewTableRep &)
Assignment is forbidden, because copying a table requires some more knowledge (like table name of res...
this file contains all the compiler specific defines
ColumnSet * columnSetPtr()
Get pointer to column set.
void setInUse()
Set object to in use by a (Plain)Table object.
TableOption
Define the possible options how a table can be opened.
TableDesc * tableDescPtr()
Get pointer to table description.