26#ifndef TABLES_TABLECACHE_H
27#define TABLES_TABLECACHE_H
30#include <casacore/casa/aips.h>
31#include <casacore/casa/Arrays/ArrayFwd.h>
32#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.
TableCache & operator=(const TableCache &)=delete
The assignment operator is forbidden.
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.
Vector< String > getTableNames() const
Get the names of the tables in the cache.
TableCache()
Construct an empty cache of open tables.
std::map< String, void * > tableMap_p
uInt nAutoLocks()
Determine the number of locked tables opened with the AutoLock option (Locked table means locked for ...
void rename(const String &newName, const String &oldName)
Rename an open table.
PlainTable * lookCache(const String &name, int tableOption, const TableLock &tableInfo)
Look in the cache if the table is already open.
TableCache(const TableCache &)=delete
The copy constructor is forbidden.
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.
this file contains all the compiler specific defines
String name() const
Return the name of the field.
bool Bool
Define the standard types used by Casacore.
LatticeExprNode all(const LatticeExprNode &expr)