summaryrefslogtreecommitdiffhomepage
path: root/PIDFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'PIDFile.h')
-rw-r--r--PIDFile.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/PIDFile.h b/PIDFile.h
new file mode 100644
index 0000000..3278b0e
--- /dev/null
+++ b/PIDFile.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <filesystem>
+#include <string>
+
+class PIDFile
+{
+public:
+ PIDFile(const std::string& programname);
+ ~PIDFile();
+
+private:
+ int get_pid_from_file() const;
+
+ std::filesystem::path get_filename() const;
+
+ std::string m_programname;
+};
+