![]() |
My Project
|
DirectoryIterator for iterating over files and directories. More...
#include <DirectoryIterator.h>
Public Member Functions | |
DirectoryIterator (const std::string &path) | |
Constructor. More... | |
~DirectoryIterator () | |
Destructor. | |
bool | hasNext () |
Verifies if another entry exist in the directory. | |
std::string | next () |
Advances the iterator and returns the name of the next entry. | |
std::string | currentEntry () |
Returns the name of the current entry. | |
std::string | currentPath () |
Returns the path of the current entry. More... | |
DirectoryIterator for iterating over files and directories.
DirectoryIterator class for iterating over files and directories on the filesystem.
Definition at line 46 of file DirectoryIterator.h.
DirectoryIterator | ( | const std::string & | path | ) |
Constructor.
path | The path on the filesystem to iterate. |
std::string currentPath | ( | ) |
Returns the path of the current entry.
This appends the name of the current entry to the path of the directory that is being iterated.