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 _WINCE_DIRECTORY_H_
00002 #define _WINCE_DIRECTORY_H_
00003 
00004 //#include <string>
00005 #include "OSDependent/OSDependent.h"
00006 
00007 class DirectoryEntry;  // defined in OSDependent/Directory.h
00008 
00009 // String does not need dll interface.
00010 #pragma warning (disable : 4251)
00011 
00012 /*
00013  * Class for directory operations for WinNT.
00014  */
00015 class ClassExport Directory {
00016 private:
00017   bool            _hasFirst;  // has first entry already
00018   bool            _isRewound; // object is rewound, reopen for use
00019   char            _name[128];      // name of directory
00020   HANDLE          _handle;    // handle to the open directory
00021   WIN32_FIND_DATA _data;      // data of the current record
00022 
00023 public:
00024   Directory(const char *name);
00025   ~Directory();
00026 
00027         int open();
00028         int close();
00029         int rewind();
00030   int seek(int pos);
00031   const char *name() const;
00032   DirectoryEntry *read();
00033 };
00034 
00035 #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