|
Open Model Railroad Network (OpenMRN)
|
This class creates a temporary directory for the test, and removes it when the test is done. More...
#include <TempFile.hxx>
Public Member Functions | |
| TempDir () | |
| const string & | name () const |
Static Public Member Functions | |
| static TempDir * | instance () |
Private Attributes | |
| string | dirName_ |
| name of the temporary directory. | |
This class creates a temporary directory for the test, and removes it when the test is done.
The caller is responsible for creating and removing the files in this directory.
The temporary directory will be under the current working directory (usually wherever the test is running).
Definition at line 52 of file TempFile.hxx.
| TempDir::TempDir | ( | ) |
Definition at line 54 of file TempFile.cxx.
|
inline |
Definition at line 58 of file TempFile.hxx.
|
inlinestatic |
Definition at line 67 of file TempFile.hxx.
|
inline |
Definition at line 73 of file TempFile.hxx.
|
private |
name of the temporary directory.
Definition at line 79 of file TempFile.hxx.