![]() |
ATLAS Offline Software
|
Helper class for making sure the current directory is preserved. More...
#include <TDirectoryReset.h>
Public Member Functions | |
| TDirectoryReset (::TDirectory *dir=gDirectory) | |
| Constructor with the current directory. More... | |
| ~TDirectoryReset () | |
| Destructor. More... | |
Private Attributes | |
| ::TDirectory * | m_dir |
| The directory that we need to return to. More... | |
Helper class for making sure the current directory is preserved.
This class is used in the code to make sure that whenever a function call returns to the user, the current directory (gDirectory) would be the same as it was before the function call. Otherwise the user can have a few surprises...
Definition at line 28 of file TDirectoryReset.h.
|
inline |
Constructor with the current directory.
Definition at line 32 of file TDirectoryReset.h.
|
inline |
|
private |
The directory that we need to return to.
Definition at line 38 of file TDirectoryReset.h.
1.8.18