summaryrefslogtreecommitdiffhomepage
path: root/PIDFile.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-11 10:36:20 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-11 10:36:20 +0100
commit3c7b85d8355c64dec5b4ce011753196d53774103 (patch)
treeb350ef977987dd5e4155ae71d2c836a762225d56 /PIDFile.h
parentaa210ed8a27387882fc7fd0dcd7cf961a9adc88f (diff)
Added PIDFile
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;
+};
+