summaryrefslogtreecommitdiffhomepage
path: root/tempfile.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-02 16:32:01 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-02 16:32:01 +0100
commitd00dc2c69164d8a8850d317f2868c6f131b7f679 (patch)
treec206c5088be0ed2fa0af692f1e0bc739f66d0b0a /tempfile.h
First lib versionv1.0
Diffstat (limited to 'tempfile.h')
-rw-r--r--tempfile.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tempfile.h b/tempfile.h
new file mode 100644
index 0000000..b9839a7
--- /dev/null
+++ b/tempfile.h
@@ -0,0 +1,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();
+ };
+
+