Go to the documentation of this file.
28 #ifndef TABLES_MEMORYTABLE_H
29 #define TABLES_MEMORYTABLE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/tables/Tables/BaseTable.h>
35 #include <casacore/casa/BasicSL/String.h>
36 #include <casacore/casa/Arrays/Vector.h>
224 Bool byColumn)
const;
Define the structure of a Casacore table.
virtual TableDesc actualTableDesc() const
Get the actual table description.
virtual void rename(const String &newName, int tableOption)
Rename the table.
virtual void reopenRW()
Try to reopen the table (the underlying one) for read/write access.
Class for a table held in memory.
Abstract base class for a data manager.
virtual Bool canRenameColumn(const String &columnName) const
Test if a column can be renamed (yes).
virtual void removeColumn(const Vector< String > &columnNames)
Remove columns.
virtual void mergeLock(const TableLock &lockOptions)
Merge the given lock info with the existing one.
A hierarchical collection of named fields of various types.
LockType
Define the possible lock types.
virtual void unlock()
Unlocking the table is a no-op.
Abstract base class for tables.
virtual BaseColumn * getColumn(const String &columnName) const
Get a column object using its name.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Locking the table is a no-op.
Class to manage a set of table columns.
virtual void resync()
Resyncing the Table is a no-op.
virtual void addColumn(const ColumnDesc &columnDesc, Bool addToParent)
Add a column to the table.
virtual DataManager * findDataManager(const String &name, Bool byColumn) const
Find the data manager with the given name or for the given column.
virtual TableRecord & keywordSet()
Get readonly access to the table keyword set.
virtual void removeRow(uInt rownr)
Remove the given row.
const TableDesc & tableDesc() const
Get the table description.
MemoryTable(const MemoryTable &)
Copy constructor is forbidden, because copying a table requires some more knowledge (like table name ...
virtual void addColumn(const ColumnDesc &columnDesc, const DataManager &dataManager, Bool addToParent)
MemoryTable(SetupNewTable &, uInt nrrow, Bool initialize)
Create the table in memory using the definitions in the SetupNewTable object.
virtual void addRow(uInt nrrow=1, Bool initialize=True)
Add one or more rows and possibly initialize them.
Abstract base class for a table column.
virtual const TableLock & lockOptions() const
Get the locking info.
virtual TableRecord & rwKeywordSet()
Get read/write access to the table keyword set.
virtual void deepCopy(const String &newName, const Record &dataManagerInfo, const StorageOption &, int tableOption, Bool, int endianFormat, Bool noRows) const
virtual void addColumn(const TableDesc &tableDesc, const DataManager &dataManager, Bool addToParent)
virtual Bool canRemoveRow() const
Test if it is possible to remove a row from this table (yes).
Create a new table - define shapes, data managers, etc.
virtual Bool canRemoveColumn(const Vector< String > &columnNames) const
Test if columns can be removed (yes).
virtual ~MemoryTable()
The destructor deletes all data.
Class to hold table lock options.
this file contains all the compiler specific defines
virtual void renameHypercolumn(const String &newName, const String &oldName)
Rename a hypercolumn.
TableLockData * lockPtr_p
virtual int tableType() const
Get the table type (Table::Memory).
MemoryTable & operator=(const MemoryTable &)
Assignment is forbidden, because copying a table requires some more knowledge (like table name of res...
virtual Bool canAddRow() const
Test if it is possible to add a row to this table (yes).
virtual const StorageOption & storageOption() const
Get the storage option used for the table.
int tableOption() const
Get the table option.
virtual void renameColumn(const String &newName, const String &oldName)
Rename a column.
virtual BaseColumn * getColumn(uInt columnIndex) const
Get a column object using its index.
String: the storage and methods of handling collections of characters.
virtual uInt getModifyCounter() const
Get the modify counter.
virtual Bool isWritable() const
Test if the table is opened as writable.
bool Bool
Define the standard types used by Casacore.
virtual Bool isMultiUsed(Bool checkSubTable) const
Is the table in use (i.e.
virtual Bool asBigEndian() const
Is the table stored in big or little endian format? It returns the endian format of the machine.
virtual void flushTableInfo()
Write the TableInfo object.
A hierarchical collection of named fields of various types.
virtual void addColumn(const ColumnDesc &columnDesc, const String &dataManager, Bool byName, Bool addToParent)
A 1-D Specialization of the Array class.
Options defining how table files are organized.
virtual Bool hasLock(FileLocker::LockType) const
Has this process the read or write lock, thus can the table be read or written safely?...
Class to hold table lock data.
Envelope class for the description of a table column.
virtual void flush(Bool fsync, Bool recursive)
Flushing the table is a no-op.
virtual Record dataManagerInfo() const
Get the data manager info.
void setup(BaseTable *btp)
Setup the main parts of the object.
virtual void copy(const String &newName, int tableOption) const
Copy the table and all its subtables.