summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:42 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:42 +0200
commit98eac951f8087b213f5850bd126dcb279db360a8 (patch)
treec121f5c4df1aab847defa539990c1315bd5ba4a8 /dir.h
parent0537da9d1e0f593130fc3967befb71e673b016bc (diff)
tagging ychat-0.6ychat-0.6
Diffstat (limited to 'dir.h')
-rwxr-xr-xdir.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/dir.h b/dir.h
new file mode 100755
index 0000000..9c271c2
--- /dev/null
+++ b/dir.h
@@ -0,0 +1,32 @@
+
+#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:
+ DIR *dp;
+ struct dirent *ep;
+ vector<string>* p_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