00001 /* ScummVM - Graphic Adventure Engine00002 *00003 * ScummVM is the legal property of its developers, whose names00004 * are too numerous to list here. Please refer to the COPYRIGHT00005 * file distributed with this source distribution.00006 *00007 * This program is free software; you can redistribute it and/or00008 * modify it under the terms of the GNU General Public License00009 * as published by the Free Software Foundation; either version 200010 * of the License, or (at your option) any later version.00011 *00012 * This program is distributed in the hope that it will be useful,00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the00015 * GNU General Public License for more details.00016 *00017 * You should have received a copy of the GNU General Public License00018 * along with this program; if not, write to the Free Software00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.00020 *00021 */00022
00023 #ifndef BACKENDS_FS_CHROOT_CHROOT_FS_H00024 #define BACKENDS_FS_CHROOT_CHROOT_FS_H00025
00026 #include "backends/fs/posix/posix-fs.h"00027
00028class ChRootFilesystemNode : publicAbstractFSNode {
00029Common::String_root;
00030POSIXFilesystemNode *_realNode;
00031
00032 ChRootFilesystemNode(constCommon::String &root, POSIXFilesystemNode *);
00033
00034 public:
00035 ChRootFilesystemNode(constCommon::String &root, constCommon::String &path);
00036 virtual~ChRootFilesystemNode();
00037
00038 virtualboolexists() const;
00039 virtualCommon::StringgetDisplayName() const;
00040 virtualCommon::StringgetName() const;
00041 virtualCommon::StringgetPath() const;
00042 virtualboolisDirectory() const;
00043 virtualboolisReadable() const;
00044 virtualboolisWritable() const;
00045
00046 virtualAbstractFSNode *getChild(constCommon::String &n) const;
00047 virtualboolgetChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
00048 virtualAbstractFSNode *getParent() const;
00049
00050 virtualCommon::SeekableReadStream *createReadStream();
00051 virtualCommon::WriteStream *createWriteStream();
00052 virtualboolcreate(bool isDirectoryFlag);
00053
00054 private:
00055 staticCommon::StringaddPathComponent(constCommon::String &path, constCommon::String &component);
00056 };
00057
00058 #endif /* BACKENDS_FS_CHROOT_CHROOT_FS_H */
Generated on Sat Nov 30 2019 05:00:22 for ResidualVM by 1.7.1