summaryrefslogtreecommitdiffhomepage
path: root/libcommon/tempfile.h
blob: b9839a7d11a0f7338ee4d2f7681db123ad3262d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <filesystem>

class Tempfile
{
 std::filesystem::path m_path;

 public:
  std::filesystem::path GetPath() const;

  // extension: e.g. ".zip"
  Tempfile(const std::filesystem::path& extension = std::filesystem::path{});
  ~Tempfile();
 };