|
xrpld
|
RAII temporary directory. More...
#include <temp_dir.h>
Public Member Functions | |
| TempDir () | |
| Construct a temporary directory. | |
| ~TempDir () | |
| Destroy a temporary directory. | |
| std::string | path () const |
| Get the native path for the temporary directory. | |
| std::string | file (std::string const &name) const |
| Get the native path for the a file. | |
Private Attributes | |
| boost::filesystem::path | path_ |
RAII temporary directory.
The directory and all its contents are deleted when the instance of temp_dir is destroyed.
Definition at line 14 of file temp_dir.h.
| beast::TempDir::TempDir | ( | ) |
Construct a temporary directory.
Definition at line 26 of file temp_dir.h.
| beast::TempDir::~TempDir | ( | ) |
Destroy a temporary directory.
Definition at line 37 of file temp_dir.h.
|
nodiscard |
Get the native path for the temporary directory.
Definition at line 47 of file temp_dir.h.
|
nodiscard |
Get the native path for the a file.
The file does not need to exist.
Definition at line 57 of file temp_dir.h.
|
private |
Definition at line 16 of file temp_dir.h.