28 #ifndef TABLES_PLAINTABLE_H
29 #define TABLES_PLAINTABLE_H
101 int endianFormat,
const TSMOption& tsmOption);
106 const TableLock& lockOptions,
int endianFormat,
256 Bool byColumn)
const;
virtual BaseColumn * getColumn(uInt columnIndex) const
Get a column object using its index.
A 1-D Specialization of the Array class.
virtual void unlock()
Unlock the table.
Create a new table - define shapes, data managers, etc.
virtual Bool canRemoveRow() const
Test if it is possible to remove a row from this table.
int tableOption() const
Get the table option.
MemoryIO * doReleaseCallBack(Bool always)
Class defining a plain regular table.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Try to lock the table for read or write access.
virtual void mergeLock(const TableLock &lockOptions)
Merge the given lock info with the existing one.
void checkWritable(const char *func) const
Throw an exception if the table is not writable.
TableLockData * lockPtr_p
virtual void removeRow(uInt rownr)
Remove the given row.
AipsIO is the object persistency mechanism of Casacore.
virtual const StorageOption & storageOption() const
Get the storage option used for the table.
virtual Bool hasLock(FileLocker::LockType) const
Has this process the read or write lock, thus can the table be read or written safely?
virtual Bool canRenameColumn(const String &columnName) const
Test if a column can be renamed (yes).
Envelope class for the description of a table column.
Class to hold table synchronization data.
virtual void renameSubTables(const String &newName, const String &oldName)
Rename the subtables (used by rename function).
Class to hold table lock data.
virtual void addColumn(const ColumnDesc &columnDesc, Bool)
Add a column to the table.
void setEndian(int endianFormat)
Determine and set the endian format (big or little).
virtual casacore::String type() const
Implements RegionShape::type.
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
static TableCache theirTableCache
Class to manage a set of table columns.
void PlainTableCommon(SetupNewTable &, uInt nrrow, Bool initialize, const TableLock &lockOptions, int endianFormat, const TSMOption &tsmOption)
Common part of the constructor shared by MPI and non-MPI.
virtual Bool isMultiUsed(Bool checkSubTables) const
Is the table in use (i.e.
virtual TableRecord & keywordSet()
Get readonly access to the table keyword set.
Options defining how table files are organized.
virtual const TableLock & lockOptions() const
Get the locking info.
Abstract base class for tables.
virtual void renameColumn(const String &newName, const String &oldName)
Rename a column.
virtual Bool asBigEndian() const
Is the table stored in big or little endian format?
virtual Bool isWritable() const
Test if the table is opened as writable.
virtual Bool canAddRow() const
Test if it is possible to add a row to this table.
Options for the Tiled Storage Manager Access.
virtual void flush(Bool fsync, Bool recursive)
Flush the table, i.e.
virtual TableRecord & rwKeywordSet()
Get read/write access to the table keyword set.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
static void getLayout(TableDesc &desc, AipsIO &ios)
Return the layout of a table (i.e.
static TableCache & tableCache()
Get access to the TableCache.
virtual DataManager * findDataManager(const String &name, Bool byColumn) const
Find the data manager with the given name or for the given column.
PlainTable(SetupNewTable &, uInt nrrow, Bool initialize, const TableLock &lockOptions, int endianFormat, const TSMOption &tsmOption)
Construct the object for a new table.
Class to hold table lock options.
A hierarchical collection of named fields of various types.
virtual void reopenRW()
Try to reopen the table for read/write access.
virtual Record dataManagerInfo() const
Get the data manager info.
void closeObject()
Close the object which is called by the destructor.
Bool putFile(Bool always)
When needed, write the table control information in an AipsIO file.
OpenOption
Define the possible ByteIO open options.
virtual void removeColumn(const Vector< String > &columnNames)
Remove columns.
virtual void addRow(uInt nrrow, Bool initialize)
Add one or more rows and possibly initialize them.
Abstract base class for a data manager.
void syncTable()
Synchronize the table after having acquired a lock which says that main table data has changed...
String: the storage and methods of handling collections of characters.
Class for IO to a memory buffer.
virtual ~PlainTable()
The destructor flushes (i.e.
virtual TableDesc actualTableDesc() const
Get the actual table description.
void autoReleaseLock(Bool always=False)
Do a release of an AutoLock when the inspection interval has expired.
Define the structure of a Casacore table.
PlainTable & operator=(const PlainTable &)
Assignment is forbidden, because copying a table requires some more knowledge (like table name of res...
static ByteIO::OpenOption toAipsIOFoption(int tableOption)
Convert a Table option to an AipsIO file option.
virtual uInt getModifyCounter() const
Get the modify counter.
LockType
Define the possible lock types.
const TableDesc & tableDesc() const
Get the table description.
virtual void resync()
Resync the Table object with the table file.
virtual Bool canRemoveColumn(const Vector< String > &columnNames) const
Test if columns can be removed.
static MemoryIO * releaseCallBack(void *plainTableObject, Bool always)
The callback function when a lock is released.
virtual void setTableChanged()
Set the table to being changed.
virtual void renameHypercolumn(const String &newName, const String &oldName)
Rename a hypercolumn.
Abstract base class for a table column.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.