artdaq  v2_03_02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
LockFile Class Reference

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

Public Member Functions

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

Static Public Member Functions

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

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  path)
inlineexplicit

Create a lock file with the given path.

Parameters
pathPath to lock file

Definition at line 49 of file routing_master.cc.

Member Function Documentation

static bool LockFile::IsLocked ( std::string  path)
inlinestatic

Check if the given lock file exists.

Parameters
pathPath 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: