fileio.h

Go to the documentation of this file.
00001 //     $Id: fileio.h,v 1.11 2009-04-18 13:48:40 mbickel Exp $
00002 //
00003 //     $Log: not supported by cvs2svn $
00004 //     Revision 1.10  2007/04/13 16:16:15  mbickel
00005 //      Merged ASC2 branch
00006 //
00007 //     Revision 1.8.2.1  2006/07/08 17:00:14  mbickel
00008 //      Merged updates from trunk
00009 //      Fixed replay problems
00010 //      Restructuring
00011 //
00012 //     Revision 1.9  2006/04/25 18:04:11  mbickel
00013 //      Fixed compilation problems
00014 //
00015 //     Revision 1.8  2003/11/18 18:29:23  mbickel
00016 //      Fixed unix compilation problems
00017 //
00018 //     Revision 1.7  2002/10/19 16:42:05  mbickel
00019 //      Fixes to the build system
00020 //
00021 //     Revision 1.6  2002/01/29 20:42:16  mbickel
00022 //      Improved finding of files with relative path
00023 //      Added wildcards to music playlist files
00024 //
00025 //     Revision 1.5  2001/10/11 10:41:06  mbickel
00026 //      Restructured platform fileio handling
00027 //      Added map archival information to mapeditor
00028 //
00029 //     Revision 1.4  2001/05/18 22:30:30  mbickel
00030 //      The data file is now installed in the correct directory
00031 //      If the installation directory is changed with configure, the new path
00032 //       will now be compiled directly into ASC
00033 //
00034 //     Revision 1.3  2001/02/26 21:14:32  mbickel
00035 //      Added two small editors to the linux makefiles
00036 //      Added some more truecolor hacks to the graphics engine
00037 //
00038 //     Revision 1.2  2000/10/12 21:37:57  mbickel
00039 //      Further restructured platform dependant routines
00040 //
00041 //     Revision 1.1  2000/10/12 20:21:43  mbickel
00042 //      Restructuring operating system dependant files
00043 //
00044 //
00045 /*
00046     This file is part of Advanced Strategic Command; http://www.asc-hq.de
00047     Copyright (C) 1994-2010  Martin Bickel  and  Marc Schellenberger
00048 
00049     This program is free software; you can redistribute it and/or modify
00050     it under the terms of the GNU General Public License as published by
00051     the Free Software Foundation; either version 2 of the License, or
00052     (at your option) any later version.
00053 
00054     This program is distributed in the hope that it will be useful,
00055     but WITHOUT ANY WARRANTY; without even the implied warranty of
00056     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00057     GNU General Public License for more details.
00058 
00059     You should have received a copy of the GNU General Public License
00060     along with this program; see the file COPYING. If not, write to the 
00061     Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
00062     Boston, MA  02111-1307  USA
00063 */
00064 
00065 // this file takes care that the necessary header files for opendir / readdir
00066 // are being included in basestrm.cpp
00067 
00068 #ifndef fileio_h_included
00069  #define fileio_h_included
00070 
00071   #ifdef HAVE_SYS_DIRENT_H
00072    #include <sys/dirent.h>
00073   #endif
00074  
00075   #if HAVE_DIRENT_H
00076   # include <dirent.h>
00077   # define NAMLEN(dirent) strlen((dirent)->d_name)
00078   #else
00079   # define dirent direct
00080   # define NAMLEN(dirent) (dirent)->d_namlen
00081   # if HAVE_SYS_NDIR_H
00082   #  include <sys/ndir.h>
00083   # endif
00084   # if HAVE_SYS_DIR_H
00085   #  include <sys/dir.h>
00086   # endif
00087   # if HAVE_NDIR_H
00088   #  include <ndir.h>
00089   # endif
00090   #endif
00091   #define ASC_direct dirent
00092  
00093   #include <unistd.h>
00094 
00095 extern const char* filereadmode;
00096 extern const char* filewritemode;
00097 extern const char* filereadmodetext;
00098 extern const char* filewritemodetext;
00099 extern const char pathdelimitter;
00100 extern const char* pathdelimitterstring;
00101 extern const char  foreignPathDelimitter;
00102 extern const char* foreignPathDelimitterString;
00103 extern const bool has_drive_letters;
00104 
00105 extern const int maxfilenamelength;
00106 extern const char* asc_configurationfile;
00107 
00108 #endif

Generated on Mon May 21 01:26:32 2012 for Advanced Strategic Command by  doxygen 1.5.1