Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

wvlockfile.h

Go to the documentation of this file.
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * Some handy functions to create/remove /var/lock lockfiles.
00006  */
00007 #ifndef __WVLOCKFILE_H
00008 #define __WVLOCKFILE_H
00009 
00010 #include "wvstring.h"
00011 
00017 class WvLockFile
00018 {
00019     WvString devicename, filename;
00020     int lock_count;
00021 public:
00022     WvLockFile(WvString _devicename);
00023     ~WvLockFile();
00024     
00025     bool lock();
00026     void unlock();
00027     bool islocked() const
00028        { return lock_count != 0; }
00029 };
00030 
00031 #endif // __WVLOCKFILE_H

Generated on Sun Aug 25 12:42:14 2002 for WvStreams by doxygen1.2.15