summaryrefslogtreecommitdiffstats
path: root/directory.hpp
blob: 1b085c565e17e22fcb7e1487d8b3a5d76eb25b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __DIRECTORY_H
#define __DIRECTORY_H

#include <string>
#include <dirent.h>

class Directory
{
    public:
        explicit Directory(const std::string& path);
        ~Directory();

        bool next(std::string& name);

    private:
        dirent* entry;
        DIR* dirp;
};

#endif
OpenPOWER on IntegriCloud