sipxportlib  Version 3.3
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OsFileIteratorBase Class Reference

#include <OsFileIteratorBase.h>

Inheritance diagram for OsFileIteratorBase:
Inheritance graph
[legend]
Collaboration diagram for OsFileIteratorBase:
Collaboration graph
[legend]

Public Types

enum  OsFileType { ANY_FILE, DIRECTORIES, FILES }
 
enum  { INVALID_HANDLE = 0 }
 

Public Member Functions

 OsFileIteratorBase ()
 enumcode: ANY_FILE - Directories and Files enumcode: DIRECTORY - Search for directories only enumcode: FILE - Search for files only More...
 
 OsFileIteratorBase (const OsPathBase &rPathName)
 
virtual ~OsFileIteratorBase ()
 
virtual OsStatus findFirst (OsPathBase &rEntry, const char *filterExp=".*", OsFileType fileType=ANY_FILE)
 
virtual OsStatus findNext (OsPathBase &rEntry)
 
int getFileCount ()
 

Protected Member Functions

virtual void Release ()
 

Protected Attributes

OsPathBase mUserSpecifiedPath
 
OsPathBase mFullSearchSpec
 
RegExmFilterExp
 
long mSearchHandle
 

Member Enumeration Documentation

enum OsFileType
Enumerator
ANY_FILE 
DIRECTORIES 
FILES 
anonymous enum
Enumerator
INVALID_HANDLE 

Constructor & Destructor Documentation

enumcode: ANY_FILE - Directories and Files enumcode: DIRECTORY - Search for directories only enumcode: FILE - Search for files only

OsFileIteratorBase ( const OsPathBase rPathName)
~OsFileIteratorBase ( )
virtual

Member Function Documentation

OsStatus findFirst ( OsPathBase rEntry,
const char *  filterExp = ".*",
OsFileType  fileType = ANY_FILE 
)
virtual
OsStatus findNext ( OsPathBase rEntry)
virtual
int getFileCount ( )
inline
void Release ( )
protectedvirtual

Reimplemented in OsFileIteratorWnt.

Member Data Documentation

OsPathBase mUserSpecifiedPath
protected
OsPathBase mFullSearchSpec
protected
RegEx* mFilterExp
protected
long mSearchHandle
protected