Etterna 0.74.4
Loading...
Searching...
No Matches
RageFileDriverTimeout.h
1/* RageFileDriverTimeOut - manipulate files with a forced timeout. */
2
3#ifndef RAGE_FILE_DRIVER_TIMEOUT_H
4#define RAGE_FILE_DRIVER_TIMEOUT_H
5
6#include "RageFileDriver.h"
7
9
11{
12 public:
13 explicit RageFileDriverTimeout(const std::string& path);
14 ~RageFileDriverTimeout() override;
15
16 RageFileBasic* Open(const std::string& path, int mode, int& err) override;
17 void FlushDirCache(const std::string& sPath) override;
18 bool Move(const std::string& sOldPath,
19 const std::string& sNewPath) override;
20 bool Remove(const std::string& sPath) override;
21
22 static void SetTimeout(float fSeconds);
23 static void ResetTimeout() { SetTimeout(-1); }
24
25 private:
26 ThreadedFileWorker* m_pWorker;
27};
28
29#endif
Definition RageFileBasic.h:10
Definition RageFileDriverTimeout.h:11
Definition RageFileDriver.h:12
Definition RageFileDriverTimeout.cpp:73