csVfsDirectoryChanger Class Reference
Helper class to change the current VFS directory and restore the previous directory when an instance goes out of scope. More...
#include <cstool/vfsdirchange.h>
Public Member Functions | |
void | ChangeTo (const char *filename) |
Change to the directory filename is in. | |
csVfsDirectoryChanger (iVFS *vfs) | |
Create instance. | |
void | PushDir () |
Just pushes the current directory, but doesn't change it in anyway - useful when you want to call ChDir() or ChDirAuto() manually for some reason, but still want to have the current directory restored automatically. | |
~csVfsDirectoryChanger () | |
Destroy instance. Restores the old directory if ChangeTo() was called. |
Detailed Description
Helper class to change the current VFS directory and restore the previous directory when an instance goes out of scope.
Definition at line 31 of file vfsdirchange.h.
Constructor & Destructor Documentation
|
Create instance.
Definition at line 41 of file vfsdirchange.h. |
|
Destroy instance. Restores the old directory if ChangeTo() was called.
Definition at line 43 of file vfsdirchange.h. |
Member Function Documentation
|
Change to the directory filename is in.
Definition at line 53 of file vfsdirchange.h. References csStringBase::Replace(). |
|
Just pushes the current directory, but doesn't change it in anyway - useful when you want to call ChDir() or ChDirAuto() manually for some reason, but still want to have the current directory restored automatically.
Definition at line 72 of file vfsdirchange.h. |
The documentation for this class was generated from the following file:
- cstool/vfsdirchange.h
Generated for Crystal Space by doxygen 1.4.6