#include <Dir.h>
Public Member Functions | |
Dir () | |
Create an uninitialized directory. More... | |
Dir (FileSystem *fs, const char *path) | |
Open a directory on a filesystem. More... | |
virtual | ~Dir () |
Destroy a file. More... | |
virtual int | open (FileSystem *fs, const char *path) |
Open a directory on the filesystem. More... | |
virtual int | close () |
Close a directory. More... | |
virtual ssize_t | read (struct dirent *ent) |
Read the next directory entry. More... | |
virtual void | seek (off_t offset) |
Set the current position of the directory. More... | |
virtual off_t | tell () |
Get the current position of the directory. More... | |
virtual void | rewind () |
Rewind the current position to the beginning of the directory. More... | |
virtual size_t | size () |
Get the sizeof the directory. More... | |
virtual int | closedir () |
Closes the directory. More... | |
virtual struct dirent * | readdir () |
Returns the directory entry at the current position, and advances the position to the next entry. More... | |
virtual void | rewinddir () |
Resets the position to the beginning of the directory. More... | |
virtual off_t | telldir () |
Returns the current position of the DirHandle. More... | |
virtual void | seekdir (off_t location) |
Sets the position of the DirHandle. More... | |
Dir | ( | ) |
Create an uninitialized directory.
Must call open to initialize the directory on a file system
Dir | ( | FileSystem * | fs, |
const char * | path | ||
) |
Open a directory on a filesystem.
fs | Filesystem as target for a directory |
path | Name of the directory to open |
|
virtual |
Destroy a file.
Closes file if the file is still open
|
virtual |
|
virtualinherited |
Closes the directory.
Definition at line 117 of file DirHandle.h.
|
virtual |
Open a directory on the filesystem.
fs | Filesystem as target for a directory |
path | Name of the directory to open |
|
virtual |
Read the next directory entry.
ent | The directory entry to fill out |
Implements DirHandle.
|
virtualinherited |
Returns the directory entry at the current position, and advances the position to the next entry.
Definition at line 132 of file DirHandle.h.
|
virtual |
Rewind the current position to the beginning of the directory.
Implements DirHandle.
|
virtualinherited |
Resets the position to the beginning of the directory.
Definition at line 142 of file DirHandle.h.
|
virtual |
Set the current position of the directory.
offset | Offset of the location to seek to, must be a value returned from tell |
Implements DirHandle.
|
virtualinherited |
Sets the position of the DirHandle.
location | The location to seek to. Must be a value returned by telldir. |
Definition at line 166 of file DirHandle.h.
|
virtual |
|
virtual |
Get the current position of the directory.
Implements DirHandle.
|
virtualinherited |
Returns the current position of the DirHandle.
Definition at line 155 of file DirHandle.h.