|
openMSX
|
Simple wrapper around openmdir() / readdir() / closedir() functions. More...
#include <ReadDir.hh>


Public Member Functions | |
| ReadDir (const std::string &directory) | |
| ~ReadDir () | |
| struct dirent * | getEntry () |
| Get directory entry for next file. | |
| bool | isValid () const |
| Is the given directory valid (does it exist)? | |
Additional Inherited Members |
Simple wrapper around openmdir() / readdir() / closedir() functions.
Mainly usefull to automatically call closedir() when object goes out of scope.
Definition at line 16 of file ReadDir.hh.
|
explicit |
Definition at line 5 of file ReadDir.cc.
| openmsx::ReadDir::~ReadDir | ( | ) |
Definition at line 10 of file ReadDir.cc.
|
read |
Get directory entry for next file.
Returns nullptr when there are no more entries or in case of error (e.g. given directory does not exist).
Definition at line 17 of file ReadDir.cc.
Referenced by openmsx::RestoreMachineCommand::execute(), openmsx::Reactor::getHwConfigs(), and openmsx::FileOperations::getNextNumberedFileName().
| bool openmsx::ReadDir::isValid | ( | ) | const |
Is the given directory valid (does it exist)?
Definition at line 25 of file ReadDir.cc.
1.8.1.2