|
ACE
6.3.4
|
Define a portable C++ directory-entry iterator based on the POSIX scandir API. More...
#include <Dirent_Selector.h>
Public Member Functions | |
| 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... | |
| ACE_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, ACE_SCANDIR_SELECTOR selector=0, ACE_SCANDIR_COMPARATOR comparator=0) |
Protected Attributes | |
| ACE_DIRENT ** | namelist_ |
| Ptr to the namelist array. More... | |
| int | n_ |
| Number of entries in the array. More... | |
Define a portable C++ directory-entry iterator based on the POSIX scandir API.
| ACE_Dirent_Selector::ACE_Dirent_Selector | ( | void | ) |
Constructor.
|
virtual |
Destructor.
| int ACE_Dirent_Selector::close | ( | void | ) |
Free up resources.
|
inline |
Return the length of the list of matching directory entries.
| int ACE_Dirent_Selector::open | ( | const ACE_TCHAR * | dir, |
| ACE_SCANDIR_SELECTOR | selector = 0, |
||
| ACE_SCANDIR_COMPARATOR | comparator = 0 |
||
| ) |
Open the directory dir and populate the current list of names with directory entries that match the selector and comparator.
|
inline |
Return the entry at index.
|
protected |
Number of entries in the array.
|
protected |
Ptr to the namelist array.
1.8.9.1