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

#include <filesystem>

#define EXPORT __attribute__((visibility("default")))

namespace Reichwein {

class EXPORT 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();
};

} // namespace