00001 //Filename : ODIR.H 00002 //Description : Object Directory Header 00003 00004 #ifndef __ODIR_H 00005 #define __ODIR_H 00006 00007 #ifndef __WINDOWS_ 00008 #include <windows.H> 00009 #endif 00010 00011 #ifndef __ODYNARR_H 00012 #include <ODYNARR.H> 00013 #endif 00014 00015 //---------- Define struct FileInfo ----------// 00016 00018 struct FileInfo { 00019 char name[MAX_PATH+1]; 00020 unsigned long size; 00021 FILETIME time; 00022 }; 00023 00024 //---------- Define class Directory ----------// 00025 00027 class Directory : public DynArray { 00028 public: 00029 Directory(); 00030 00031 int read(char*, int=0); 00032 FileInfo* operator[](int recNo) { return (FileInfo*) get(recNo); } 00033 }; 00034 00035 //--------------------------------------------// 00036 #endif