SysFileIterator Class Reference

#include <SysFileSystem.hpp>

Public Member Functions

 SysFileIterator (const char *pattern)
 
 ~SysFileIterator ()
 
void close ()
 
bool hasNext ()
 
void next (char *buffer)
 
 SysFileIterator (const char *pattern)
 
 ~SysFileIterator ()
 
void close ()
 
bool hasNext ()
 
void next (char *buffer)
 

Protected Attributes

bool completed
 
struct dirent * entry
 
DIR * handle
 
HANDLE handle
 
WIN32_FIND_DATA findFileData
 

Detailed Description

Definition at line 125 of file unix/SysFileSystem.hpp.

Constructor & Destructor Documentation

◆ SysFileIterator() [1/2]

SysFileIterator::SysFileIterator ( const char *  p)

Create a new SysFileIterator instance.

Parameters
pThe directory we're iterating over.

Definition at line 1061 of file unix/SysFileSystem.cpp.

References completed, entry, and handle.

◆ ~SysFileIterator() [1/2]

SysFileIterator::~SysFileIterator ( )

Destructor for the iteration operation.

Definition at line 1086 of file unix/SysFileSystem.cpp.

References close().

◆ SysFileIterator() [2/2]

SysFileIterator::SysFileIterator ( const char *  pattern)

◆ ~SysFileIterator() [2/2]

SysFileIterator::~SysFileIterator ( )

Member Function Documentation

◆ close() [1/2]

void SysFileIterator::close ( )

close the iterator.

Definition at line 1095 of file unix/SysFileSystem.cpp.

References handle.

Referenced by next(), and ~SysFileIterator().

◆ close() [2/2]

void SysFileIterator::close ( )

◆ hasNext() [1/2]

bool SysFileIterator::hasNext ( )

Check if the iterator has new results it can return.

Returns
true if the iterator has another value to return, false if the iteration is complete.

Definition at line 1111 of file unix/SysFileSystem.cpp.

References completed.

Referenced by RexxMethod1().

◆ hasNext() [2/2]

bool SysFileIterator::hasNext ( )

◆ next() [1/2]

void SysFileIterator::next ( char *  buffer)

Retrieve the next iteration value.

Parameters
bufferThe buffer used to return the value.

Definition at line 1122 of file unix/SysFileSystem.cpp.

References close(), completed, entry, and handle.

Referenced by RexxMethod1().

◆ next() [2/2]

void SysFileIterator::next ( char *  buffer)

Member Data Documentation

◆ completed

bool SysFileIterator::completed
protected

Definition at line 134 of file unix/SysFileSystem.hpp.

Referenced by hasNext(), next(), and SysFileIterator().

◆ entry

struct dirent* SysFileIterator::entry
protected

Definition at line 135 of file unix/SysFileSystem.hpp.

Referenced by next(), and SysFileIterator().

◆ findFileData

WIN32_FIND_DATA SysFileIterator::findFileData
protected

Definition at line 117 of file windows/SysFileSystem.hpp.

◆ handle [1/2]

DIR* SysFileIterator::handle
protected

Definition at line 136 of file unix/SysFileSystem.hpp.

Referenced by close(), next(), and SysFileIterator().

◆ handle [2/2]

HANDLE SysFileIterator::handle
protected

Definition at line 116 of file windows/SysFileSystem.hpp.


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