/**
@class wxDirTraverser
- @wxheader{dir.h}
wxDirTraverser is an abstract interface which must be implemented by
objects passed to wxDir::Traverse() function.
This is a pure virtual function and must be implemented in the derived
class.
*/
- virtual wxDirTraverseResult OnDir(const wxString& dirname);
+ virtual wxDirTraverseResult OnDir(const wxString& dirname) = 0;
/**
This function is called for each file. It may return ::wxDIR_STOP to
This is a pure virtual function and must be implemented in the derived
class.
*/
- virtual wxDirTraverseResult OnFile(const wxString& filename);
+ virtual wxDirTraverseResult OnFile(const wxString& filename) = 0;
/**
This function is called for each directory which we failed to open for
/**
@class wxDir
- @wxheader{dir.h}
wxDir is a portable equivalent of Unix open/read/closedir functions which
allow enumerating of the files in a directory. wxDir allows to enumerate
*/
size_t Traverse(wxDirTraverser& sink,
const wxString& filespec = wxEmptyString,
- int flags = wxDIR_DEFAULT);
+ int flags = wxDIR_DEFAULT) const;
};