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