Go to the documentation of this file.
28 #ifndef CASA_FILELOCKER_H
29 #define CASA_FILELOCKER_H
33 #include <casacore/casa/aips.h>
Bool hasLock(LockType=Write) const
Test if the process has a lock for read or write on the file.
Bool canLock(LockType=Write)
Test if the file can be locked for read or write.
FileLocker()
Default constructor creates an invalid fd.
LockType
Define the possible lock types.
int fd() const
Get the fd in use.
Bool acquire(LockType=Write, uInt nattempts=0)
Acquire a write or read lock.
String lastMessage() const
Get the message belonging to the last error.
Bool itsReadLocked
temporary for SUSE 6.1
int lastError() const
Get the last error.
this file contains all the compiler specific defines
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
String: the storage and methods of handling collections of characters.
Class to handle file locking.
bool Bool
Define the standard types used by Casacore.
Bool release()
Release a lock.