Hydra 0.20
hydra::FileIterator Class Reference

#include <FileIterator.h>

List of all members.

Public Member Functions

 FileIterator (const QString &fileOrDir, bool allfiles=false, bool recurse=true)
bool isTraversing (void) const
bool hasNext (void) const
QString next (void)

Detailed Description

This iterateos over a directory and all its subdirectories enumeratoring all the files.

Author:
Aleksander Demko

Constructor & Destructor Documentation

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.

Author:
Aleksander Demko

Member Function Documentation

bool hydra::FileIterator::hasNext ( void  ) const [inline]

Is there another file in the iteration?

Author:
Aleksander Demko
bool hydra::FileIterator::isTraversing ( void  ) const [inline]

Is this iterator traversing a directory set? If false, then the iterator was only fed one file.

Author:
Aleksander Demko
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.

Returns:
the next filename, which will always be a full, absolute filename
Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables