#include <temporary_file.hpp>
|
| static bool | create_exclusive (const std::filesystem::path &path) |
| | Create path as an empty file readable and writable by the owner only.
|
◆ TemporaryFile() [1/3]
| pulp::runtime::TemporaryFile::TemporaryFile |
( |
std::string_view | extension = "" | ) |
|
|
explicit |
Create a temporary file with optional extension (e.g., ".wav").
◆ ~TemporaryFile()
| pulp::runtime::TemporaryFile::~TemporaryFile |
( |
| ) |
|
◆ TemporaryFile() [2/3]
| pulp::runtime::TemporaryFile::TemporaryFile |
( |
const TemporaryFile & | | ) |
|
|
delete |
◆ TemporaryFile() [3/3]
| pulp::runtime::TemporaryFile::TemporaryFile |
( |
TemporaryFile && | other | ) |
|
|
noexcept |
◆ create_exclusive()
| bool pulp::runtime::TemporaryFile::create_exclusive |
( |
const std::filesystem::path & | path | ) |
|
|
static |
Create path as an empty file readable and writable by the owner only.
Fails without touching the file when path already exists.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ path()
| const std::filesystem::path & pulp::runtime::TemporaryFile::path |
( |
| ) |
const |
|
inline |
Full path to the temporary file.
◆ path_string()
| std::string pulp::runtime::TemporaryFile::path_string |
( |
| ) |
const |
|
inline |
String version of the path.
◆ release()
| void pulp::runtime::TemporaryFile::release |
( |
| ) |
|
|
inline |
Prevent auto-deletion (e.g., if you want to keep the file).
The documentation for this class was generated from the following file: