ScummVM API documentation
psp-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 PSP_FILESYSTEM_H
23 #define PSP_FILESYSTEM_H
24 
25 #include "backends/fs/abstract-fs.h"
26 
33 protected:
34  Common::String _displayName;
35  Common::String _path;
36  bool _isDirectory;
37  bool _isValid;
38 
39 public:
44 
51  PSPFilesystemNode(const Common::String &p, bool verify = true);
52 
53  virtual bool exists() const;
54  virtual Common::U32String getDisplayName() const { return _displayName; }
55  virtual Common::String getName() const { return _displayName; }
56  virtual Common::String getPath() const { return _path; }
57  virtual bool isDirectory() const { return _isDirectory; }
58  virtual bool isReadable() const;
59  virtual bool isWritable() const;
60 
61  virtual AbstractFSNode *getChild(const Common::String &n) const;
62  virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
63  virtual AbstractFSNode *getParent() const;
64 
66  virtual Common::SeekableWriteStream *createWriteStream(bool atomic);
67  virtual bool createDirectory();
68 };
69 
70 #endif
virtual bool isWritable() const
Definition: str.h:59
Definition: array.h:52
virtual Common::String getPath() const
Definition: psp-fs.h:56
virtual Common::U32String getDisplayName() const
Definition: psp-fs.h:54
Definition: stream.h:745
virtual bool isDirectory() const
Definition: psp-fs.h:57
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const
virtual Common::String getName() const
Definition: psp-fs.h:55
Definition: ustr.h:57
ListMode
Definition: fs.h:86
virtual Common::SeekableWriteStream * createWriteStream(bool atomic)
virtual AbstractFSNode * getChild(const Common::String &n) const
virtual bool isReadable() const
Definition: psp-fs.h:32
virtual AbstractFSNode * getParent() const
Definition: stream.h:351
virtual Common::SeekableReadStream * createReadStream()
virtual bool createDirectory()
Definition: abstract-fs.h:41