Inheritance diagram for Ux::DirStream:
Definition at line 28 of file uxdirstream.hpp.
Public Member Functions | |
DirStream (void) | |
dirent * | get_entry (void) |
const char * | get_name (void) |
void | alloc (const char *path="/") |
void | free (void) |
size_t | get_max_name (const char *path="/") |
void | open (const char *path) |
void | open_alloc (const char *path) |
void | close (void) |
bool | read (void) |
void | rewind (void) |
void | seek (long loc) |
long | tell (void) |
Protected Attributes | |
DIR * | dirstream |
dirent * | entry |
|
Definition at line 34 of file uxdirstream.hpp. |
|
Calls malloc to allocate space for dirent. Definition at line 25 of file uxdirstream.cpp. References entry, errno, and get_max_name(). Referenced by open_alloc(). |
|
Calls closedir. Definition at line 73 of file uxdirstream.cpp. |
|
Calls free to free directory entry. Definition at line 36 of file uxdirstream.cpp. References free(). Referenced by free(). |
|
Definition at line 37 of file uxdirstream.hpp. |
|
Calls pathconf to get _PC_NAME_MAX. Definition at line 45 of file uxdirstream.cpp. Referenced by alloc(). |
|
Definition at line 39 of file uxdirstream.hpp. References dirent::d_name. |
|
Calls opendir. Definition at line 55 of file uxdirstream.cpp. References dirstream, and errno. Referenced by open_alloc(). |
|
Calls open and allocates space for directory entry. Definition at line 64 of file uxdirstream.cpp. |
|
Calls readdir_r. Definition at line 82 of file uxdirstream.cpp. |
|
Calls rewinddir. Definition at line 95 of file uxdirstream.cpp. References dirstream. |
|
Calls seekdir. Definition at line 103 of file uxdirstream.cpp. References dirstream. |
|
Calls telldir. Definition at line 111 of file uxdirstream.cpp. |
|
Definition at line 30 of file uxdirstream.hpp. Referenced by close(), open(), read(), rewind(), seek(), and tell(). |
|
Definition at line 31 of file uxdirstream.hpp. |