dirstreamw32.h

00001 
00002 //      file            :       dirstreamw32.h
00003 //  copyright   :       (C) 2002-2004 Benjamin Kaufmann
00004 //  email               :       hume@c-plusplus.de
00005 //      internet        :       http://bens.c-plusplus.info/
00006 //
00007 //  Deklarationen die unter Win32 nötig sind.
00009 #ifndef DIRSTREAMW32_H_INCLUDED
00010 #define DIRSTREAMW32_H_INCLUDED
00011 /*
00012 
00013     Declaration of POSIX directory browsing functions and types for Win32.
00014 
00015     Author:  Kevlin Henney (kevlin@acm.org, kevlin@curbralan.com)
00016     History: Created March 1997. Updated June 2003.
00017     Rights:  See end of file.
00018 
00019 */
00020 typedef struct DIR DIR;
00021 struct dirent
00022 {
00023         char *d_name;
00024         unsigned attrib; // BK: added to allow efficient isDir-Query
00025 };
00026 
00027 DIR*                    opendir(const char *);
00028 int                             closedir(DIR *);
00029 struct dirent*  readdir(DIR *);
00030 void rewinddir(DIR *dir);
00031 /*
00032 
00033     Copyright Kevlin Henney, 1997, 2003. All rights reserved.
00034 
00035     Permission to use, copy, modify, and distribute this software and its
00036     documentation for any purpose is hereby granted without fee, provided
00037     that this copyright and permissions notice appear in all copies and
00038     derivatives.
00039 
00040     This software is supplied "as is" without express or implied warranty.
00041 
00042     But that said, if there are any problems please get in touch.
00043 
00044 */
00045 
00046 namespace dirstr 
00047 {
00048         bool isDir(unsigned attrib);
00049         const char PATH_SEPERATOR = '\\';
00050 }
00051 
00052 
00053 #endif
00054 

Generated on Fri Apr 27 13:12:35 2007 for Highlight Code Converter by  doxygen 1.5.2