LockFile Class Reference

Create a "lock file", removing it upon class destruction. More...

List of all members.

Public Member Functions

 LockFile (std::string const &path)
 Create a lock file with the given path.
 ~LockFile ()
 LockFile Destructor, removes the lock file.

Static Public Member Functions

static bool IsLocked (std::string const &path)
 Check if the given lock file exists.

Detailed Description

Create a "lock file", removing it upon class destruction.

Definition at line 42 of file routing_master.cc.


Constructor & Destructor Documentation

LockFile::LockFile ( std::string const &  path  )  [inline, explicit]

Create a lock file with the given path.

Parameters:
path Path to lock file

Definition at line 49 of file routing_master.cc.


Member Function Documentation

static bool LockFile::IsLocked ( std::string const &  path  )  [inline, static]

Check if the given lock file exists.

Parameters:
path Path to lock file
Returns:
Whether the lock file exists, as determined by boost::filesystem

Definition at line 67 of file routing_master.cc.


The documentation for this class was generated from the following file:

Generated on 19 Feb 2018 for artdaq by  doxygen 1.6.1