|
Hydra 0.20
|
#include <FileIterator.h>
Public Member Functions | |
| FileIterator (const QString &fileOrDir, bool allfiles=false, bool recurse=true) | |
| bool | isTraversing (void) const |
| bool | hasNext (void) const |
| QString | next (void) |
This iterateos over a directory and all its subdirectories enumeratoring all the files.
| hydra::FileIterator::FileIterator | ( | const QString & | fileOrDir, |
| bool | allfiles = false, |
||
| bool | recurse = true |
||
| ) |
Construtor. The initial dir (which can also just be a file) is supplied.
Unless allfiles is true, then hidden directories (.*) will be skippeded.
If recurse is true, then all subdirectories will be examined too.
| bool hydra::FileIterator::hasNext | ( | void | ) | const [inline] |
Is there another file in the iteration?
| bool hydra::FileIterator::isTraversing | ( | void | ) | const [inline] |
Is this iterator traversing a directory set? If false, then the iterator was only fed one file.
| QString hydra::FileIterator::next | ( | void | ) |
Returns the next file in the iteration. Note that all the files will be returned, so you will need to filter further if you only want files of a certain type, etc.