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> 145 int tableOption,
Bool,
int endianFormat,
150 virtual void rename (
const String& newName,
int tableOption);
223 Bool byColumn)
const;
virtual Bool asBigEndian() const
Is the table stored in big or little endian format? It returns the endian format of the machine...
virtual void deepCopy(const String &newName, const Record &dataManagerInfo, int tableOption, Bool, int endianFormat, Bool noRows) 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 TableDesc actualTableDesc() const
Get the actual table description.
const TableDesc & tableDesc() const
Get the table description.
virtual void unlock()
Unlocking the table is a no-op.
virtual void copy(const String &newName, int tableOption) const
Copy the table and all its subtables.
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.
Class to hold table lock data.
virtual Bool canRenameColumn(const String &columnName) const
Test if a column can be renamed (yes).
virtual void mergeLock(const TableLock &lockOptions)
Merge the given lock info with the existing one.
virtual void resync()
Resyncing the Table is a no-op.
virtual DataManager * findDataManager(const String &name, Bool byColumn) const
Find the data manager with the given name or for the given column.
Class to manage a set of table columns.
virtual void removeRow(uInt rownr)
Remove the given row.
int tableOption() const
Get the table option.
Options defining how table files are organized.
virtual void addColumn(const ColumnDesc &columnDesc, Bool addToParent)
Add a column to the table.
virtual void addRow(uInt nrrow=1, Bool initialize=True)
Add one or more rows and possibly initialize them.
virtual const TableLock & lockOptions() const
Get the locking info.
virtual TableRecord & rwKeywordSet()
Get read/write access to the table keyword set.
Abstract base class for tables.
MemoryTable(SetupNewTable &, uInt nrrow, Bool initialize)
Create the table in memory using the definitions in the SetupNewTable object.
virtual TableRecord & keywordSet()
Get readonly access to the table keyword set.
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.
virtual Bool canRemoveRow() const
Test if it is possible to remove a row from this table (yes).
bool Bool
Define the standard types used by Casacore.
Class to hold table lock options.
virtual Bool isWritable() const
Test if the table is opened as writable.
virtual void renameHypercolumn(const String &newName, const String &oldName)
Rename a hypercolumn.
A hierarchical collection of named fields of various types.
virtual int tableType() const
Get the table type (Table::Memory).
virtual void flushTableInfo()
Write the TableInfo object.
virtual Bool canRemoveColumn(const Vector< String > &columnNames) const
Test if columns can be removed (yes).
virtual void renameColumn(const String &newName, const String &oldName)
Rename a column.
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.
Abstract base class for a data manager.
TableLockData * lockPtr_p
virtual Record dataManagerInfo() const
Get the data manager info.
virtual void flush(Bool fsync, Bool recursive)
Flushing the table is a no-op.
virtual const StorageOption & storageOption() const
Get the storage option used for the table.
String: the storage and methods of handling collections of characters.
virtual BaseColumn * getColumn(uInt columnIndex) const
Get a column object using its index.
Define the structure of a Casacore table.
virtual uInt getModifyCounter() const
Get the modify counter.
LockType
Define the possible lock types.
virtual void reopenRW()
Try to reopen the table (the underlying one) for read/write access.
virtual Bool canAddRow() const
Test if it is possible to add a row to this table (yes).
virtual void removeColumn(const Vector< String > &columnNames)
Remove columns.
this file contains all the compiler specific defines
virtual void rename(const String &newName, int tableOption)
Rename the table.
Abstract base class for a table column.
virtual Bool isMultiUsed(Bool checkSubTable) const
Is the table in use (i.e.