diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /ace/Dirent_Selector.h | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'ace/Dirent_Selector.h')
-rw-r--r-- | ace/Dirent_Selector.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/ace/Dirent_Selector.h b/ace/Dirent_Selector.h deleted file mode 100644 index c5a1cb31d6f..00000000000 --- a/ace/Dirent_Selector.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- C++ -*- */ - -//============================================================================= -/** - * @file Dirent_Selector.h - * - * $Id$ - * - * Define a portable C++ interface to the <ACE_OS_Dirent::scandir> method. - * - * @author Rich Newman <RNewman@directv.com> - */ -//============================================================================= - -#ifndef ACE_DIRENT_SELECTOR_H -#define ACE_DIRENT_SELECTOR_H -#include "ace/pre.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "ace/ACE_export.h" - -/** - * @class ACE_Dirent_Selector - * - * @brief Define a portable C++ directory-entry iterator based on the - * POSIX scandir API. - */ -class ACE_Export ACE_Dirent_Selector -{ -public: - /// Constructor - ACE_Dirent_Selector (void); - - /// Destructor. - virtual ~ACE_Dirent_Selector (void); - - /// Return the length of the list of matching directory entries. - int length (void) const; - - /// Return the entry at @a index. - dirent *operator[] (const int index) const; - - /// Free up resources. - int close (void); - - /// Open the directory @a dir and populate the <namelist_> array with - /// directory entries that match the @a selector and @a comparator. - int open (const ACE_TCHAR *dir, - int (*selector)(const dirent *d) = 0, - int (*comparator)(const dirent **d1, const dirent **d2) = 0); - -protected: - /// Ptr to the namelist array. - dirent **namelist_; - - /// # of entries in the array. - int n_; -}; - -#if defined (__ACE_INLINE__) -#include "ace/Dirent_Selector.inl" -#endif /* __ACE_INLINE__ */ - -#include "ace/post.h" -#endif /* ACE_DIRENT_SELECTOR_H */ |