Iterator to step through files in a folder.
More...
#include <path.h>
|
class | IterBlock |
| Low level class to deal with the file iteration kernel calls. More...
|
|
|
| Iterator (const std::string &dirName, const char *wildCard) |
| Construct a path iterator from a directory name and wild card. More...
|
|
Iterator to step through files in a folder.
This is return by the tbx::Path::begin and tbx::Path::end methods.
Path::Iterator::Iterator |
( |
const std::string & |
dirName, |
|
|
const char * |
wildCard |
|
) |
| |
|
protected |
Construct a path iterator from a directory name and wild card.
- Parameters
-
dirName | name of directory to iterate |
wildCard | wild card to match against file names to return |
Path::Iterator::Iterator |
( |
const Iterator & |
other | ) |
|
Copy constructor.
- Parameters
-
bool Path::Iterator::operator!= |
( |
const Iterator & |
other | ) |
|
Check if this iterator is different from another.
- Parameters
-
- Returns
- true if iterator are different
std::string& tbx::Path::Iterator::operator* |
( |
| ) |
|
|
inline |
Get file name for current iterator.
- Returns
- file name
Move iterator to next item.
- Returns
- *this
Move iterator to next item.
- Returns
- copy of iterator before the move
std::string* tbx::Path::Iterator::operator-> |
( |
| ) |
|
|
inline |
Get file name for current iterator.
- Returns
- file name
Assign this iterator as the value of another.
- Parameters
-
- Returns
- *this
bool Path::Iterator::operator== |
( |
const Iterator & |
other | ) |
|
Check if this iterator is the same as another.
- Parameters
-
- Returns
- true if iterator are the same
The documentation for this class was generated from the following files: