ScummVM API documentation
atari-fs.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef ATARI_FILESYSTEM_H
23 #define ATARI_FILESYSTEM_H
24 
25 #include "backends/fs/posix-drives/posix-drives-fs.h"
26 
27 #include "common/hash-str.h"
28 #include "common/hashmap.h"
29 
36 protected:
37  AbstractFSNode *makeNode() const override {
38  return new AtariFilesystemNode(_config, _fileHashMap);
39  }
40  AbstractFSNode *makeNode(const Common::String &path) const override {
41  return new AtariFilesystemNode(path, _config, _fileHashMap);
42  }
43 
44 public:
46 
47  AtariFilesystemNode(const Config &config, const FileHashMap &fileHashMap)
48  : DrivePOSIXFilesystemNode(config)
49  , _fileHashMap(fileHashMap) {
50  }
51  AtariFilesystemNode(const Common::String &path, const Config &config, const FileHashMap &fileHashMap)
52  : DrivePOSIXFilesystemNode(path, config)
53  , _fileHashMap(fileHashMap) {
54  }
55 
56 protected:
57  void setFlags() override;
58 
59 private:
60  const FileHashMap &_fileHashMap;
61  bool _displayNameChecked = false;
62 };
63 
64 #endif
Definition: str.h:59
Definition: atari-fs.h:35
void setFlags() override
Definition: posix-drives-fs.h:33
Definition: posix-drives-fs.h:52
Definition: abstract-fs.h:41