Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Directory.h

Go to the documentation of this file.
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;  // defined in OSDependent/Directory.h
00011 
00012 // String does not need dll interface.
00013 #pragma warning (disable : 4251)
00014 
00015 /*
00016  * Class for directory operations for WinNT.
00017  */
00018 class ClassExport Directory {
00019 private:
00020   bool               _hasFirst;  // has first entry already
00021   bool               _isRewound; // object is rewound, reopen for use
00022         std::string        _name;      // name of directory
00023         long               _handle;    // handle to the open directory
00024         struct _finddata_t _data;      // data of the current record
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_

Generated on Mon Oct 7 09:33:29 2002 for Gaia by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001