Brad Bishop | 26b815f | 2017-01-04 13:32:47 -0500 | [diff] [blame] | 1 | #pragma once |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 2 | |
3 | #include <string> | ||||
4 | #include <dirent.h> | ||||
5 | |||||
6 | class Directory | ||||
7 | { | ||||
8 | public: | ||||
9 | explicit Directory(const std::string& path); | ||||
10 | ~Directory(); | ||||
11 | |||||
12 | bool next(std::string& name); | ||||
13 | |||||
14 | private: | ||||
15 | dirent* entry; | ||||
16 | DIR* dirp; | ||||
17 | }; | ||||
18 | |||||
Brad Bishop | 03476f1 | 2016-12-19 13:09:12 -0500 | [diff] [blame] | 19 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |