#include <Dirent_Selector.h>
Public Member Functions | |
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. | |
ACE_DIRENT * | operator[] (const int index) const |
Return the entry at index. | |
int | close (void) |
Free up resources. | |
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. | |
int | n_ |
Number of entries in the array. |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Dirent_Selector::ACE_Dirent_Selector | ( | void | ) |
Constructor.
ACE_Dirent_Selector::~ACE_Dirent_Selector | ( | void | ) | [virtual] |
Destructor.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_Dirent_Selector::length | ( | void | ) | const |
Return the length of the list of matching directory entries.
ACE_INLINE ACE_DIRENT * ACE_Dirent_Selector::operator[] | ( | const int | index | ) | const |
Return the entry at index.
int ACE_Dirent_Selector::close | ( | void | ) |
Free up resources.
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.
ACE_DIRENT** ACE_Dirent_Selector::namelist_ [protected] |
Ptr to the namelist array.
int ACE_Dirent_Selector::n_ [protected] |
Number of entries in the array.