|
rippled
|
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 110 of file FileDirGuard.h.
|
protectedinherited |
Definition at line 40 of file FileDirGuard.h.
| ripple::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 117 of file FileDirGuard.h.
| ripple::detail::FileDirGuard::~FileDirGuard | ( | ) |
Definition at line 143 of file FileDirGuard.h.
| path const & ripple::detail::FileDirGuard::file | ( | ) | const |
Definition at line 167 of file FileDirGuard.h.
| bool ripple::detail::FileDirGuard::fileExists | ( | ) | const |
Definition at line 173 of file FileDirGuard.h.
|
protectedinherited |
Definition at line 50 of file FileDirGuard.h.
|
inherited |
Definition at line 101 of file FileDirGuard.h.
|
protected |
Definition at line 113 of file FileDirGuard.h.
|
protected |
Definition at line 114 of file FileDirGuard.h.
|
privateinherited |
Definition at line 43 of file FileDirGuard.h.
|
privateinherited |
Definition at line 44 of file FileDirGuard.h.
|
protectedinherited |
Definition at line 47 of file FileDirGuard.h.