00001 #ifndef _WINNT_DIRECTORY_H_
00002 #define _WINNT_DIRECTORY_H_
00003
00004 #include <stdio.h>
00005 #include <io.h>
00006 #include <time.h>
00007 #include <string>
00008 #include "OSDependent/OSDependent.h"
00009
00010 class DirectoryEntry;
00011
00012
00013 #pragma warning (disable : 4251)
00014
00015
00016
00017
00018 class ClassExport Directory {
00019 private:
00020 bool _hasFirst;
00021 bool _isRewound;
00022 std::string _name;
00023 long _handle;
00024 struct _finddata_t _data;
00025
00026 public:
00027 Directory(const char *name);
00028 ~Directory();
00029
00030 int open();
00031 int close();
00032 int rewind();
00033 int seek(int pos);
00034 const char *name() const;
00035 DirectoryEntry *read();
00036 };
00037
00038 #endif // _WINNT_DIRECTORY_H_