Etterna 0.74.4
Loading...
Searching...
No Matches
RageFileDriverDirectHelpers.h
1/* RageFileDriverDirectHelpers - Internal helpers for RageFileDriverDirect. */
2
3#ifndef RAGE_FILE_DRIVER_DIRECT_HELPERS_H
4#define RAGE_FILE_DRIVER_DIRECT_HELPERS_H
5
6#if defined(HAVE_FCNTL_H)
7#include <fcntl.h>
8#endif
9
10#define DoStat stat
11#define DoMkdir mkdir
12#define DoFindFirstFile FindFirstFile
13#define DoRename rename
14#define DoRemove remove
15std::string
16DoPathReplace(const std::string& sPath);
17
18#ifdef _WIN32
19bool
20WinMoveFile(const std::string& sOldPath, const std::string& sNewPath);
21#endif
22
23#if !defined(O_BINARY)
24#define O_BINARY 0
25#endif
26
27bool
28CreateDirectories(const std::string& sPath);
29
30#include "RageUtil/Utils/RageUtil_FileDB.h"
32{
33 public:
34 DirectFilenameDB(const std::string& root);
35 void SetRoot(const std::string& root);
36 void CacheFile(const std::string& sPath) override;
37
38 protected:
39 void PopulateFileSet(FileSet& fs, const std::string& sPath) override;
40 std::string root;
41};
42
43#endif
Definition RageFileDriverDirectHelpers.h:32
A container for a file listing.
Definition RageUtil_FileDB.h:108
This represents a directory.
Definition RageUtil_FileDB.h:80