• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

lockfile.h

Go to the documentation of this file.
00001 #ifndef WIBBLE_SYS_LOCKFILE_H
00002 #define WIBBLE_SYS_LOCKFILE_H
00003 
00004 #include <string>
00005 
00006 namespace wibble {
00007 namespace sys {
00008 namespace fs {
00009 
00016 struct Lockfile
00017 {
00018     std::string name;
00019     int fd;
00020 
00027     Lockfile(const std::string& name, bool write = true);
00028     ~Lockfile();
00029 
00030 private:
00031     // Disallow copying
00032     Lockfile(const Lockfile&);
00033     Lockfile& operator=(const Lockfile&);
00034 };
00035 
00036 }
00037 }
00038 }
00039 
00040 // vim:set ts=4 sw=4:
00041 #endif

Generated on Tue May 10 2011 16:51:50 for wibble by  doxygen 1.7.1