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 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).
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.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
Class to manage a set of table columns.
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.
virtual void removeRow(uInt rownr)
Remove the given row.
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 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 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.
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
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.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.