![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
An RAII helper class to manage a temporary directory. More...
Public Member Functions | |
| temporary_directory () | |
| Create a new temporary directory with a unique name. | |
| temporary_directory (path_string root) | |
| Create a new temporary directory with a unique name. | |
| temporary_directory (temporary_directory &&)=default | |
| default move constructor | |
| temporary_directory (temporary_directory const &)=delete | |
| deleted copy constructor | |
| ~temporary_directory () | |
| Remove the temporary directory and all its contents. | |
| auto | operator= (temporary_directory &&) -> temporary_directory &=default |
| default move assignment operator | |
| auto | operator= (temporary_directory const &) -> temporary_directory &=delete |
| deleted copy assignment operator | |
| auto | path () const noexcept -> path_string const & |
| Get the full path of the temporary directory. | |
An RAII helper class to manage a temporary directory.
The directory is created on construction, and recursively removed on destruction.
|
explicit |
Create a new temporary directory with a unique name.
| root | parent directory which will contain the temporary directory |
| std::system_error | If an error occurs that prevents inspecting or modifying a directory. |
If the TMPDIR environment variable is set, the temporary directory is created under the specified directory, otherwise it is created under root
|
inline |
Create a new temporary directory with a unique name.
If the TMPDIR environment variable is set, the temporary directory is created under the specified directory, otherwise it is created under /tmp
| arene::base::filesystem::temporary_directory::~temporary_directory | ( | ) |
Remove the temporary directory and all its contents.
|
delete |
deleted copy constructor
|
default |
default move constructor
|
default |
default move assignment operator
|
delete |
deleted copy assignment operator
|
inlinenoexcept |
Get the full path of the temporary directory.