rippled
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
ripple::detail::DirGuard Class Reference

Create a directory and remove it when it's done. More...

#include <FileDirGuard.h>

Inheritance diagram for ripple::detail::DirGuard:
Inheritance graph
[legend]
Collaboration diagram for ripple::detail::DirGuard:
Collaboration graph
[legend]

Public Member Functions

 DirGuard (beast::unit_test::suite &test, path subDir, bool useCounter=true)
 
 ~DirGuard ()
 
path const & subdir () const
 

Protected Types

using path = boost::filesystem::path
 

Protected Member Functions

auto rmDir (path const &toRm)
 

Protected Attributes

beast::unit_test::suitetest_
 

Private Attributes

path subDir_
 
bool rmSubDir_ {false}
 

Detailed Description

Create a directory and remove it when it's done.

Definition at line 18 of file FileDirGuard.h.

Member Typedef Documentation

◆ path

using ripple::detail::DirGuard::path = boost::filesystem::path
protected

Definition at line 21 of file FileDirGuard.h.

Constructor & Destructor Documentation

◆ DirGuard()

ripple::detail::DirGuard::DirGuard ( beast::unit_test::suite test,
path  subDir,
bool  useCounter = true 
)

Definition at line 41 of file FileDirGuard.h.

◆ ~DirGuard()

ripple::detail::DirGuard::~DirGuard ( )

Definition at line 65 of file FileDirGuard.h.

Member Function Documentation

◆ rmDir()

auto ripple::detail::DirGuard::rmDir ( path const &  toRm)
protected

Definition at line 31 of file FileDirGuard.h.

◆ subdir()

path const & ripple::detail::DirGuard::subdir ( ) const

Definition at line 82 of file FileDirGuard.h.

Member Data Documentation

◆ subDir_

path ripple::detail::DirGuard::subDir_
private

Definition at line 24 of file FileDirGuard.h.

◆ rmSubDir_

bool ripple::detail::DirGuard::rmSubDir_ {false}
private

Definition at line 25 of file FileDirGuard.h.

◆ test_

beast::unit_test::suite& ripple::detail::DirGuard::test_
protected

Definition at line 28 of file FileDirGuard.h.