blob: 0a9d58093924e711814f9015060cc6481ee2a711 [file] [log] [blame]
Brad Bishop26b815f2017-01-04 13:32:47 -05001#pragma once
Patrick Williams3667cf32015-10-20 22:39:11 -05002
3#include <string>
4#include <dirent.h>
5
6class 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 Bishop03476f12016-12-19 13:09:12 -050019// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4