Belle II Software light-2406-ragdoll
|
changes working directory into a newly created directory, and removes it (and contents) on destruction. More...
#include <TestHelpers.h>
Public Member Functions | |
TempDirCreator () | |
ctor. | |
~TempDirCreator () | |
dtor. | |
std::string | getTempDir () const |
Returns path of temporary directory. | |
Private Attributes | |
std::string | m_oldpwd |
previous working directory. | |
std::string | m_tmpdir |
path of temporary director. | |
changes working directory into a newly created directory, and removes it (and contents) on destruction.
Example:
Definition at line 66 of file TestHelpers.h.
TempDirCreator | ( | ) |
ctor.
Definition at line 45 of file TestHelpers.cc.
~TempDirCreator | ( | ) |
dtor.
Definition at line 61 of file TestHelpers.cc.
std::string getTempDir | ( | ) | const |
Returns path of temporary directory.
Definition at line 67 of file TestHelpers.cc.
|
private |
previous working directory.
Definition at line 76 of file TestHelpers.h.
|
private |
path of temporary director.
Definition at line 77 of file TestHelpers.h.