summaryrefslogtreecommitdiffhomepage
path: root/PIDFile.h
blob: 3278b0eff8ef71b32c6552a2b3e26619ff92bf22 (plain)
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;
};