18 const std::filesystem::path&
path()
const {
return path_; }
39 std::filesystem::path path_;
static bool create_exclusive(const std::filesystem::path &path)
Create path as an empty file readable and writable by the owner only.
TemporaryFile(TemporaryFile &&other) noexcept
TemporaryFile(const TemporaryFile &)=delete
std::string path_string() const
String version of the path.
Definition temporary_file.hpp:21
TemporaryFile & operator=(TemporaryFile &&other) noexcept
TemporaryFile(std::string_view extension="")
Create a temporary file with optional extension (e.g., ".wav").
void release()
Prevent auto-deletion (e.g., if you want to keep the file).
Definition temporary_file.hpp:24
TemporaryFile & operator=(const TemporaryFile &)=delete
const std::filesystem::path & path() const
Full path to the temporary file.
Definition temporary_file.hpp:18
Definition generated_event_source.hpp:33
@ other
Definition udev_monitor.hpp:26