#include <pdirectory.h>
Public Member Functions | |
| Directory (const char *path) throw (IOError) | |
| Constructs a directory stream. | |
| ~Directory () throw () | |
| const std::string & | path () const throw () |
| Get the path of the directory stream. | |
| const char * | operator++ () throw (IOError) |
| Get next entry from directory stream. | |
| const char * | operator * () const throw () |
| Get current entry from directory stream. | |
| void | rewind () throw () |
| Rewind the directory stream to the beginning. | |
Static Public Member Functions | |
| void | create (const char *path) throw (IOError) |
| Create the given directory. | |
| void | remove (const char *path) throw (IOError) |
| Remove (unlink) the given directory. | |
| std::string | current () throw (IOError) |
| Get the current working directory. | |
| void | change (const char *path) throw (IOError) |
| Change the current working directory. | |
| std::string | separator () throw () |
| Returns the systems directory separator. | |
| std::string | homeDir () throw () |
| Returns path to the home directory. | |
| void | getDriveList (std::list< std::string > &dl) throw () |
| Returns a list of drive letters. | |
This class can be used to enumerate the contents of a directory. It also provides some static methods to create or remove directories as well as for changing and retrieven the current directory.
Definition at line 40 of file pdirectory.h.
|
|
Constructs a directory stream. Constructs a directory stream object for the given path. If the directory does not exist or is not readable a IOError will be thrown.
|
|
|
|
|
|
Change the current working directory.
|
|
|
Create the given directory.
|
|
|
Get the current working directory.
|
|
|
Returns a list of drive letters.
|
|
|
Returns path to the home directory.
|
|
|
Get current entry from directory stream.
|
|
|
Get next entry from directory stream.
|
|
|
Get the path of the directory stream.
Definition at line 54 of file pdirectory.h. |
|
|
Remove (unlink) the given directory.
|
|
|
Rewind the directory stream to the beginning.
|
|
|
Returns the systems directory separator.
|
1.3.3