From d00dc2c69164d8a8850d317f2868c6f131b7f679 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 2 Jan 2023 16:32:01 +0100 Subject: First lib version --- tempfile.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tempfile.h (limited to 'tempfile.h') 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 + +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(); + }; + + -- cgit v1.2.3