| 
    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 91 of file FileDirGuard.h.
      
  | 
  protectedinherited | 
Definition at line 21 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 98 of file FileDirGuard.h.
| ripple::detail::FileDirGuard::~FileDirGuard | ( | ) | 
Definition at line 124 of file FileDirGuard.h.
| path const & ripple::detail::FileDirGuard::file | ( | ) | const | 
Definition at line 148 of file FileDirGuard.h.
| bool ripple::detail::FileDirGuard::fileExists | ( | ) | const | 
Definition at line 154 of file FileDirGuard.h.
      
  | 
  protectedinherited | 
Definition at line 31 of file FileDirGuard.h.
      
  | 
  inherited | 
Definition at line 82 of file FileDirGuard.h.
      
  | 
  protected | 
Definition at line 94 of file FileDirGuard.h.
      
  | 
  protected | 
Definition at line 95 of file FileDirGuard.h.
      
  | 
  privateinherited | 
Definition at line 24 of file FileDirGuard.h.
      
  | 
  privateinherited | 
Definition at line 25 of file FileDirGuard.h.
      
  | 
  protectedinherited | 
Definition at line 28 of file FileDirGuard.h.