|
xrpld
|
Write a file in a directory and remove when done. More...
#include <FileDirGuard.h>


Public Member Functions | |
| FileDirGuard (beast::unit_test::Suite &test, path subDir, path file, std::string const &contents, bool useCounter=true, bool create=true) | |
| ~FileDirGuard () | |
| path const & | file () const |
| bool | fileExists () const |
| path const & | subdir () const |
Protected Types | |
| using | path = boost::filesystem::path |
Protected Member Functions | |
| auto | rmDir (path const &toRm) |
Protected Attributes | |
| path const | file_ |
| bool | created_ = false |
| beast::unit_test::Suite & | test_ |
Private Attributes | |
| path | subDir_ |
| bool | rmSubDir_ {false} |
Write a file in a directory and remove when done.
Definition at line 94 of file FileDirGuard.h.
|
protectedinherited |
Definition at line 19 of file FileDirGuard.h.
| xrpl::detail::FileDirGuard::FileDirGuard | ( | beast::unit_test::Suite & | test, |
| path | subDir, | ||
| path | file, | ||
| std::string const & | contents, | ||
| bool | useCounter = true, | ||
| bool | create = true ) |
Definition at line 101 of file FileDirGuard.h.
| xrpl::detail::FileDirGuard::~FileDirGuard | ( | ) |
Definition at line 125 of file FileDirGuard.h.
|
nodiscard |
Definition at line 151 of file FileDirGuard.h.
|
nodiscard |
Definition at line 157 of file FileDirGuard.h.
|
protectedinherited |
Definition at line 29 of file FileDirGuard.h.
|
nodiscardinherited |
Definition at line 85 of file FileDirGuard.h.
|
protected |
Definition at line 97 of file FileDirGuard.h.
|
protected |
Definition at line 98 of file FileDirGuard.h.
|
privateinherited |
Definition at line 22 of file FileDirGuard.h.
|
privateinherited |
Definition at line 23 of file FileDirGuard.h.
|
protectedinherited |
Definition at line 26 of file FileDirGuard.h.