openMSX
ReadDir.hh
Go to the documentation of this file.
1 #ifndef READDIR_HH
2 #define READDIR_HH
3 
4 #include "noncopyable.hh"
5 #include "direntp.hh"
6 #include <string>
7 #include <sys/types.h>
8 
9 namespace openmsx {
10 
16 class ReadDir : private noncopyable
17 {
18 public:
19  explicit ReadDir(const std::string& directory);
20  ~ReadDir();
21 
26  struct dirent* getEntry();
27 
30  bool isValid() const;
31 
32 private:
33  DIR* dir;
34 };
35 
36 } // namespace openmsx
37 
38 #endif