3 #ifndef __DbLockTable_H
4 #define __DbLockTable_H
7 #include <mix/FileLock.H>
9 #include <ldb/DbName.H>
78 DbLockTable (
const char* project,
const char* szDbFileName);
84 ErrCode
add_lock (LockId& glid, DbAccess dbac);
98 static const char*
dbac2symb (DbAccess dbac);
101 static DbAccess
symb2dbac (
const char* s);
static DbAccess symb2dbac(const char *s)
Definition: dbnamedefs.h:67
#define DB_LOCK_EXCL_FNAME_EXT
Definition: dblocks.h:29
#define DB_LOCK_SHARED_FNAME_EXT
Definition: dblocks.h:32
const char * exclock_fpath(const char *project=NULL)
ErrCode delete_lock(LockId glid)
virtual void rebuild_fname()
DbLockTable(const char *project, const dbNameStruct &dbns)
const char * shalock_fname() const
const char * exclock_fname() const
Definition: DbLockTable.H:18
const char * shalock_fpath(const char *project=NULL)
Definition: DbLockTable.H:68
Definition: FileLock.H:15
static const char * dbac2symb(DbAccess dbac)
ErrCode add_lock(LockId &glid, DbAccess dbac)