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