UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DbLock.H
1 /* DbLock.H */
2 /* $Id: DbLock.H,v 1.2 2003/02/14 16:20:07 vlad Exp $ */
3 #ifndef __DbLock_H
4 #define __DbLock_H
5 
6 #include <mix/Lock.H>
7 #include <ldb/DbPointer.H>
8 #include <ldb/DbLockTable.H>
9 
10 
16 class DbLock
17  : public DbPointer,
18  public Lock
19 {
20 public:
21 
23  DbLock (const char* szProject,
24  const dbNameStruct& dbns,
25  DbAccess dbac);
26  DbLock (const char* szProject,
27  const char* szDbFileName,
28  DbAccess dbac);
29 
31  virtual ~DbLock ();
32 
35  LockId db_lock_id () const;
36 
37 protected:
38 
40  LockId dblid;
41 
42 private:
43 
45  ErrCode db_lock (DbAccess dbac);
46 
48  ErrCode db_unlock ();
49 
51  ErrCode db_lock_lock_table (DbLockTable*& pdblt);
52 
54  void db_unlock_lock_table (DbLockTable* pdblt);
55 
56 };
57 
58 
59 
60 #endif /* DbLock.H */
Definition: dbnamedefs.h:67
Definition: Lock.H:36
LockId dblid
Definition: DbLock.H:40
Definition: DbPointer.H:15
virtual ~DbLock()
LockId db_lock_id() const
Definition: DbLock.H:16
DbLock(const char *szProject, const dbNameStruct &dbns, DbAccess dbac)
Definition: DbLockTable.H:68