csVfsDirectoryChanger Class ReferenceHelper class to change the current VFS directory and restore the previous directory when an instance goes out of scope. More...
Public Member Functions
|void||ChangeTo (const char *filename)|
|Change to the directory filename is in. |
|csVfsDirectoryChanger (iVFS *vfs)|
|Create instance. |
|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. |
|Destroy instance. Restores the old directory if ChangeTo() was called. |
Detailed DescriptionHelper class to change the current VFS directory and restore the previous directory when an instance goes out of scope.
Constructor & Destructor Documentation
Member Function Documentation
|void csVfsDirectoryChanger::ChangeTo||(||const char *||filename||)||
Change to the directory filename is in.
- Only the part of the path up to the last '/' is treated as the directory to change to. E.g. both "<tt>/foo/bar/baz</tt>" and "<tt>/foo/bar/</tt>" will cause a directory change to "<tt>/foo/bar</tt>".
The documentation for this class was generated from the following file:
Generated for Crystal Space 1.2.1 by doxygen 1.5.3