#include <cel_fileutil.h>
Public Member Functions | |
| DirectoryListing (const String &inDirName) | |
| ~DirectoryListing () | |
| String | getNextEntry () |
DirectoryListing dl("C:\\MyFolder"); for(;;) { String fullpath = dl.getNextEntry(); // If you want to get only body name, use getFileNameFromPath String filename = FileUtils::getFileNameFromPath(fullpath); ... }
Definition at line 254 of file cel_fileutil.h.
| Celartem::FileUtils::DirectoryListing::DirectoryListing | ( | const String & | inDirName | ) |
This constructor creates a new instance of DirectoryListing class.
| inDirName | Specifies the path of the directory to create file list. |
| Celartem::FileUtils::DirectoryListing::~DirectoryListing | ( | ) |
Destructor.
| String Celartem::FileUtils::DirectoryListing::getNextEntry | ( | ) |
This method returns full path name of the next entry in the directory. If there're no more file/directory entries in the directory, this function returns NullString.