Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RageFileDriverDirectHelpers.h

Go to the documentation of this file.
00001 /* Internal helper functions for RageFileDriverDirect. */ 00002 00003 #ifndef RAGE_FILE_DRIVER_DIRECT_HELPERS_H 00004 #define RAGE_FILE_DRIVER_DIRECT_HELPERS_H 00005 00006 #include <fcntl.h> 00007 00008 #if defined(_XBOX) 00009 int DoMkdir( const CString &sPath, int perm ); 00010 int DoOpen( const CString &sPath, int flags, int perm ); 00011 int DoStat( const CString &sPath, struct stat *st ); 00012 int DoRemove( const CString &sPath ); 00013 int DoRmdir( const CString &sPath ); 00014 HANDLE DoFindFirstFile( const CString &sPath, WIN32_FIND_DATA *fd ); 00015 #else 00016 #define DoOpen open 00017 #define DoStat stat 00018 #define DoMkdir mkdir 00019 #define DoFindFirstFile FindFirstFile 00020 #define DoRemove remove 00021 #define DoRmdir rmdir 00022 #endif 00023 00024 #if defined(WIN32) 00025 int WinMoveFile( CString sOldPath, CString sNewPath ); 00026 #endif 00027 00028 #if !defined(O_BINARY) 00029 #define O_BINARY 0 00030 #endif 00031 00032 bool CreateDirectories( CString Path ); 00033 bool PathReady( CString path ); 00034 00035 #include "RageUtil_FileDB.h" 00036 class DirectFilenameDB: public FilenameDB 00037 { 00038 public: 00039 DirectFilenameDB( CString root ); 00040 void SetRoot( CString root ); 00041 00042 protected: 00043 virtual void PopulateFileSet( FileSet &fs, const CString &sPath ); 00044 CString root; 00045 }; 00046 00047 #endif 00048 00049 /* 00050 * Copyright (c) 2003-2004 Glenn Maynard, Chris Danford 00051 * All rights reserved. 00052 * 00053 * Permission is hereby granted, free of charge, to any person obtaining a 00054 * copy of this software and associated documentation files (the 00055 * "Software"), to deal in the Software without restriction, including 00056 * without limitation the rights to use, copy, modify, merge, publish, 00057 * distribute, and/or sell copies of the Software, and to permit persons to 00058 * whom the Software is furnished to do so, provided that the above 00059 * copyright notice(s) and this permission notice appear in all copies of 00060 * the Software and that both the above copyright notice(s) and this 00061 * permission notice appear in supporting documentation. 00062 * 00063 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00064 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00065 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00066 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00067 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00068 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00069 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00070 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00071 * PERFORMANCE OF THIS SOFTWARE. 00072 */

Generated on Thu Jan 27 20:57:28 2005 for StepMania by doxygen 1.3.7