summaryrefslogtreecommitdiff
path: root/src/tool/dir.h
blob: cff265f5d1fcbd29dd0584b17e47039ee0aad664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

#ifndef DIR_H
#define DIR_H

#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <vector>
#include "../incl.h"

using namespace std;

class dir
{
private:
    bool b_open;
    DIR *dp;  	
    struct dirent *ep;
    vector<string> dir_vec;

public:
    dir();
    ~dir();

   bool open_dir( char *c_dir ); 
   bool open_dir( string &s_dir ); 
   void close_dir(); 
   void read_dir();
   vector<string> get_dir_vec();
};

#endif