My Project
Public Member Functions | List of all members
DirectoryIterator Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DirectoryIterator()

DirectoryIterator ( const std::string &  path)

Constructor.

Parameters
pathThe path on the filesystem to iterate.

Member Function Documentation

◆ currentPath()

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.


The documentation for this class was generated from the following file: