|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <winstl_current_directory_scope.h>
State | |
| operator operator_bool_type () const | |
| Indicates whether the construction was successful. | |
Public Methods | |
| basic_current_directory_scope (char_type const *dir) | |
| Constructs a scope instance and changes to the given directory. | |
| template<typename S> | basic_current_directory_scope (S const &dir) |
| Constructs a scope instance and changes to the given directory. | |
| ~basic_current_directory_scope () winstl_throw_0() | |
| Returns the current directory to its original location. | |
| char_type const * | get_previous () const |
| Returns a C-string pointer to the original directory. | |
| operator char_type const * () const | |
| Returns a C-string pointer to the original directory. | |
This class scopes the process's current directory, by changing to the path given in the constructor, and then, if that succeeded, changing back in the destructor
| C |
The character type (e.g. char, wchar_t) |
| T |
The file-system traits. In translators that support default template parameters that defaults to filesystem_traits<C> |
|
|
Constructs a scope instance and changes to the given directory.
|
|
|
Constructs a scope instance and changes to the given directory.
|
|
|
Returns the current directory to its original location.
|
|
|
Returns a C-string pointer to the original directory.
|
|
|
Returns a C-string pointer to the original directory.
|
|
|
Indicates whether the construction was successful.
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |