diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-11 10:36:20 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-11 10:36:20 +0100 |
commit | 3c7b85d8355c64dec5b4ce011753196d53774103 (patch) | |
tree | b350ef977987dd5e4155ae71d2c836a762225d56 /PIDFile.h | |
parent | aa210ed8a27387882fc7fd0dcd7cf961a9adc88f (diff) |
Added PIDFile
Diffstat (limited to 'PIDFile.h')
-rw-r--r-- | PIDFile.h | 19 |
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; +}; + |