28 #ifndef TABLES_TABLECACHE_H 29 #define TABLES_TABLECACHE_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/IO/FileLocker.h> 34 #include <casacore/casa/OS/Mutex.h> 42 template<
class T>
class Vector;
112 void remove (
const String& tableName);
std::map< String, void * > tableMap_p
A 1-D Specialization of the Array class.
Class defining a plain regular table.
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.
PlainTable * operator()(const String &tableName) const
Try to find a table with the given name in the cache.
PlainTable * lookCache(const String &name, int tableOption, const TableLock &tableInfo)
Look in the cache if the table is already open.
Vector< String > getTableNames() const
Get the names of the tables in the cache.
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.
bool Bool
Define the standard types used by Casacore.
Class to hold table lock options.
TableCache & operator=(const TableCache &)
The assignment operator is forbidden.
void rename(const String &newName, const String &oldName)
Rename an open table.
Wrapper around a pthreads mutex.
TableCache()
Construct an empty cache of open tables.
String: the storage and methods of handling collections of characters.
LockType
Define the possible lock types.
LatticeExprNode all(const LatticeExprNode &expr)
this file contains all the compiler specific defines
void relinquishAutoLocks(Bool all)
Unlock locked tables opened with the AutoLock option.