#include <Dirent_Selector.h>
Collaboration diagram for ACE_Dirent_Selector:
Public Methods | |
ACE_Dirent_Selector (void) | |
Constructor. | |
virtual | ~ACE_Dirent_Selector (void) |
Destructor. | |
int | length (void) const |
Return the length of the list of matching directory entries. | |
dirent* | operator[] (const int index) const |
Return the entry at <index>. | |
int | close (void) |
Free up resources. | |
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>. | |
Protected Attributes | |
dirent** | namelist_ |
Ptr to the namelist array. | |
int | n_ |
# of entries in the array. |
|
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.
|