28 #ifndef TABLES_TABLECACHE_H
29 #define TABLES_TABLECACHE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/ArrayFwd.h>
34 #include <casacore/casa/IO/FileLocker.h>
LockType
Define the possible lock types.
String: the storage and methods of handling collections of characters.
PlainTable * operator()(const String &tableName) const
Try to find a table with the given name in the cache.
void relinquishAutoLocks(Bool all)
Unlock locked tables opened with the AutoLock option.
PlainTable * lookCache(const String &name, int tableOption, const TableLock &tableInfo)
Look in the cache if the table is already open.
TableCache(const TableCache &)
The copy constructor is forbidden.
TableCache()
Construct an empty cache of open tables.
std::map< String, void * > tableMap_p
Vector< String > getTableNames() const
Get the names of the tables in the cache.
uInt nAutoLocks()
Determine the number of locked tables opened with the AutoLock option (Locked table means locked for ...
PlainTable * getTable(const String &tableName) const
Get the table without doing a mutex lock (for operator()).
Vector< String > getLockedTables(FileLocker::LockType, int lockOption)
Get the names of tables locked in this process.
TableCache & operator=(const TableCache &)
The assignment operator is forbidden.
void rename(const String &newName, const String &oldName)
Rename an open table.
void define(const String &tableName, PlainTable *)
Add an open table to the cache.
void flushTable(const String &tableName, Bool fsync, Bool recursive)
Flush a possibly cached Table.
void remove(const String &tableName)
Remove an open table.
TableInfo tableInfo(const String &tableName)
Get the table info of the table with the given name.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode all(const LatticeExprNode &expr)