|
TrueReality
v0.1.1912
|
Simple class to change directory where it automatically pop back out on destruction. More...
#include <FileUtils.h>
Public Member Functions | |
| DirectoryPush (const std::string &dir) | |
| Constructor. More... | |
| ~DirectoryPush () | |
| Destructor. More... | |
| bool | GetSucceeded () |
| Gets the succeeded. More... | |
| const std::string & | GetError () |
| Gets the error. More... | |
Private Attributes | |
| bool | mSucceeded |
| std::string | mError |
Simple class to change directory where it automatically pop back out on destruction.
To be used on the stack.
Definition at line 695 of file FileUtils.h.
| trUtil::DirectoryPush::DirectoryPush | ( | const std::string & | dir | ) |
Constructor.
| dir | The dir. |
Definition at line 1825 of file FileUtils.cpp.
References trUtil::FileUtils::GetInstance(), mError, mSucceeded, trUtil::FileUtils::PushDirectory(), and trUtil::Exception::ToString().

| trUtil::DirectoryPush::~DirectoryPush | ( | ) |
Destructor.
Definition at line 1840 of file FileUtils.cpp.
References trUtil::FileUtils::GetInstance(), mSucceeded, and trUtil::FileUtils::PopDirectory().

| const std::string & trUtil::DirectoryPush::GetError | ( | ) |
| bool trUtil::DirectoryPush::GetSucceeded | ( | ) |
Gets the succeeded.
Definition at line 1849 of file FileUtils.cpp.
References mSucceeded.
Referenced by trUtil::FileUtils::GetAbsolutePath().

|
private |
Definition at line 734 of file FileUtils.h.
Referenced by DirectoryPush(), and GetError().
|
private |
Definition at line 733 of file FileUtils.h.
Referenced by DirectoryPush(), GetSucceeded(), and ~DirectoryPush().