1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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; };