]> git.stg.codes - ssmd.git/blob - include/pidfile.h
ba9adec412cb586a59b4e40c2830a1aa0471576f
[ssmd.git] / include / pidfile.h
1 #ifndef __SSMD_PIDFILE_H__
2 #define __SSMD_PIDFILE_H__
3
4 #include <string>
5
6 #include <boost/noncopyable.hpp>
7
8 namespace SSMD {
9
10 class PIDFile : private boost::noncopyable {
11     public:
12         PIDFile();
13         PIDFile(const std::string & file);
14         ~PIDFile();
15     private:
16         const std::string fileName;
17         void _create();
18 };
19
20 }
21
22 #endif