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

RageFileDriverTimeout.h

Go to the documentation of this file.
00001 /* RageFileDriverTimeOut - manipulate files with a forced timeout */ 00002 00003 #ifndef RAGE_FILE_DRIVER_TIMEOUT_H 00004 #define RAGE_FILE_DRIVER_TIMEOUT_H 00005 00006 #include "RageFileDriver.h" 00007 00008 class ThreadedFileWorker; 00009 00010 class RageFileDriverTimeout: public RageFileDriver 00011 { 00012 public: 00013 RageFileDriverTimeout( CString path ); 00014 virtual ~RageFileDriverTimeout(); 00015 00016 RageFileBasic *Open( const CString &path, int mode, int &err ); 00017 void FlushDirCache( const CString &sPath ); 00018 00019 static void SetTimeout( float fSeconds ); 00020 static void ResetTimeout() { SetTimeout( -1 ); } 00021 00022 private: 00023 RageFileDriver *m_pChild; 00024 ThreadedFileWorker *m_pWorker; 00025 }; 00026 00027 00028 #endif 00029 00030 /* 00031 * Copyright (c) 2005 Glenn Maynard 00032 * All rights reserved. 00033 * 00034 * Permission is hereby granted, free of charge, to any person obtaining a 00035 * copy of this software and associated documentation files (the 00036 * "Software"), to deal in the Software without restriction, including 00037 * without limitation the rights to use, copy, modify, merge, publish, 00038 * distribute, and/or sell copies of the Software, and to permit persons to 00039 * whom the Software is furnished to do so, provided that the above 00040 * copyright notice(s) and this permission notice appear in all copies of 00041 * the Software and that both the above copyright notice(s) and this 00042 * permission notice appear in supporting documentation. 00043 * 00044 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00045 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00046 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00047 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00048 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00049 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00050 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00051 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00052 * PERFORMANCE OF THIS SOFTWARE. 00053 */

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