#include <wx/dir.h>
wxDirTraverser is an abstract interface which must be implemented by objects passed to wxDir::Traverse() function.
Example of use (this works almost like wxDir::GetAllFiles()):
Public Member Functions | |
virtual wxDirTraverseResult | OnDir (const wxString &dirname)=0 |
This function is called for each directory. More... | |
virtual wxDirTraverseResult | OnFile (const wxString &filename)=0 |
This function is called for each file. More... | |
virtual wxDirTraverseResult | OnOpenError (const wxString &openerrorname) |
This function is called for each directory which we failed to open for enumerating. More... | |
|
pure virtual |
This function is called for each directory.
It may return wxDIR_STOP to abort traversing completely, wxDIR_IGNORE to skip this directory but continue with others or wxDIR_CONTINUE to enumerate all files and subdirectories in this directory.
This is a pure virtual function and must be implemented in the derived class.
|
pure virtual |
This function is called for each file.
It may return wxDIR_STOP to abort traversing (for example, if the file being searched is found) or wxDIR_CONTINUE to proceed.
This is a pure virtual function and must be implemented in the derived class.
|
virtual |
This function is called for each directory which we failed to open for enumerating.
It may return wxDIR_STOP to abort traversing completely, wxDIR_IGNORE to skip this directory but continue with others or wxDIR_CONTINUE to retry opening this directory once again.
The base class version always returns wxDIR_IGNORE.