#include <DirectoryIterator.hpp>
| Public Member Functions | |
| DirectoryIterator () | |
| DirectoryIterator (const std::string &path, bool relative=true) | |
| ~DirectoryIterator () | |
| void | operator++ (int) | 
| Moves to the next file in the directory. | |
| void | operator++ () | 
| Moves to the next file in the directory. | |
| bool | operator== (const DirectoryIterator &other) | 
| const std::string & | operator * () | 
| const std::string & | base () const | 
| void | close () | 
| Closes this iterator, releasing any operating system handles, etc. | |
| Static Public Member Functions | |
| const DirectoryIterator & | end () | 
| Private Member Functions | |
| void | _copyCurrent () | 
| void | _next () | 
| Private Attributes | |
| bool | _relative | 
| std::string | _current | 
| void * | _platform | 
| std::string | _path | 
| Static Private Attributes | |
| DirectoryIterator | _end | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| Constructs a DirectoryIterator. The iterator will step through the files in the directory named in the path parameter. If the relative flag is set to true, the iteration returns file names only; otherwise full paths to files are returned. | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Returns the path of this directory (the path passed to the constructor of this object). | 
| 
 | 
| Closes this iterator, releasing any operating system handles, etc. 
 | 
| 
 | 
| Placeholder object that indicates a finished iteration. Use this with operator != to tell when iteration is finished. | 
| 
 | 
| Returns the full path to a file in the directory if relative was set to false in the constructor (which is the default). Otherwise, returns only the file name. | 
| 
 | 
| Moves to the next file in the directory. 
 | 
| 
 | 
| Moves to the next file in the directory. 
 | 
| 
 | 
| Used only for comparison with FileTreeIterator::end. If false, the iteration is complete. | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
 1.3.4
 
1.3.4