a directory of its own, removed with what it holds at its destruction
More...
#include <ADS/external/RecordFile.h>
|
| | TempDirectory (const std::filesystem::path &parent={}, const std::string &prefix="ads-") |
| | a new directory, of a name not taken, in parent (the temporary directory of the system if empty), its name beginning by prefix
|
| | TempDirectory (TempDirectory &&other) noexcept |
| | the directory moved: the moved one removes nothing
|
| | TempDirectory (const TempDirectory &)=delete |
| | no copy, since the directory would be removed twice
|
| TempDirectory & | operator= (const TempDirectory &)=delete |
| | no copy, since the directory would be removed twice
|
| | ~TempDirectory () |
| | the directory removed with all that it holds, errors dropped
|
| const std::filesystem::path & | path (void) const |
| | the path of the directory
|
| std::filesystem::path | operator/ (const std::string &name) const |
| | the path of the file name in the directory
|
a directory of its own, removed with what it holds at its destruction
◆ TempDirectory() [1/3]
| ADS::TempDirectory::TempDirectory |
( |
const std::filesystem::path & | parent = {}, |
|
|
const std::string & | prefix = "ads-" ) |
|
explicit |
a new directory, of a name not taken, in parent (the temporary directory of the system if empty), its name beginning by prefix
◆ TempDirectory() [2/3]
| ADS::TempDirectory::TempDirectory |
( |
TempDirectory && | other | ) |
|
|
noexcept |
the directory moved: the moved one removes nothing
◆ TempDirectory() [3/3]
| ADS::TempDirectory::TempDirectory |
( |
const TempDirectory & | | ) |
|
|
delete |
no copy, since the directory would be removed twice
◆ ~TempDirectory()
| ADS::TempDirectory::~TempDirectory |
( |
| ) |
|
the directory removed with all that it holds, errors dropped
◆ operator/()
| std::filesystem::path ADS::TempDirectory::operator/ |
( |
const std::string & | name | ) |
const |
|
nodiscard |
the path of the file name in the directory
◆ operator=()
no copy, since the directory would be removed twice
◆ path()
| const std::filesystem::path & ADS::TempDirectory::path |
( |
void | | ) |
const |
|
nodiscard |
the path of the directory
The documentation for this class was generated from the following file: