scandir | API. |
#include <Dirent_Selector.h>
Collaboration diagram for ACE_Dirent_Selector:
Public Methods | |
ACE_Dirent_Selector (void) | |
Constructor. More... | |
virtual | ~ACE_Dirent_Selector (void) |
Destructor. More... | |
int | length (void) const |
Return the length of the list of matching directory entries. More... | |
dirent * | operator[] (const int index) const |
Return the entry at <index>. More... | |
int | close (void) |
Free up resources. More... | |
int | open (const ACE_TCHAR *dir, int(*selector)(const dirent *d)=0, int(*comparator)(const dirent **d1, const dirent **d2)=0) |
Open the director <dir> and populate the <namelist_> array with directory entries that match the <selector> and <comparator>. More... | |
Protected Attributes | |
dirent ** | namelist_ |
Ptr to the namelist array. More... | |
int | n_ |
# of entries in the array. More... |
scandir | API. |
|
Constructor.
|
|
Destructor.
|
|
Free up resources.
|
|
Return the length of the list of matching directory entries.
|
|
Open the director <dir> and populate the <namelist_> array with directory entries that match the <selector> and <comparator>.
|
|
Return the entry at <index>.
|
|
# of entries in the array.
|
|
Ptr to the namelist array.
|