Tiny class that changes directory and comes back when going out of scope. More...
#include <Tools.h>
Public Member Functions | |
| DirectoryChanger (const char *path) | |
| ~DirectoryChanger () | |
Private Attributes | |
| char | cwd [buffersize] = {0} |
Static Private Attributes | |
| static const std::size_t | buffersize =4096 |
Tiny class that changes directory and comes back when going out of scope.
In case system calls to change dir are not available it throws an exception.
|
explicit |
| PLMD::Tools::DirectoryChanger::~DirectoryChanger | ( | ) |
|
staticprivate |
|
private |
Hosted by GitHub
|
1.17.0
|