ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ACE_Dirent_Selector Class Reference

Define a portable C++ directory-entry iterator based on the POSIX scandir API. More...

#include <Dirent_Selector.h>

Public Member Functions

 ACE_Dirent_Selector ()=default
 Constructor.
 
virtual ~ACE_Dirent_Selector ()
 Destructor.
 
int length () const
 Return the length of the list of matching directory entries.
 
ACE_DIRENToperator[] (const int index) const
 Return the entry at index.
 
int close ()
 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.
 

Detailed Description

Define a portable C++ directory-entry iterator based on the POSIX scandir API.

Constructor & Destructor Documentation

◆ ACE_Dirent_Selector()

ACE_Dirent_Selector::ACE_Dirent_Selector ( )
default

Constructor.

◆ ~ACE_Dirent_Selector()

ACE_Dirent_Selector::~ACE_Dirent_Selector ( )
virtual

Destructor.

Member Function Documentation

◆ close()

int ACE_Dirent_Selector::close ( )

Free up resources.

◆ length()

int ACE_Dirent_Selector::length ( ) const
inline

Return the length of the list of matching directory entries.

◆ open()

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.

◆ operator[]()

ACE_DIRENT * ACE_Dirent_Selector::operator[] ( const int index) const
inline

Return the entry at index.

Member Data Documentation

◆ n_

int ACE_Dirent_Selector::n_ {}
protected

Number of entries in the array.

◆ namelist_

ACE_DIRENT** ACE_Dirent_Selector::namelist_ {}
protected

Ptr to the namelist array.


The documentation for this class was generated from the following files: