2007-08-18 05:24:18 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
2007-09-18 20:02:04 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2007-08-18 05:24:18 +00:00
|
|
|
*/
|
|
|
|
|
2007-09-18 20:02:04 +00:00
|
|
|
#ifndef POSIX_FILESYSTEM_FACTORY_H
|
|
|
|
#define POSIX_FILESYSTEM_FACTORY_H
|
2007-05-03 02:39:33 +00:00
|
|
|
|
2007-06-04 03:46:56 +00:00
|
|
|
#include "common/singleton.h"
|
2007-09-18 20:02:04 +00:00
|
|
|
#include "backends/fs/abstract-fs-factory.h"
|
2007-05-03 02:39:33 +00:00
|
|
|
|
|
|
|
/**
|
2007-09-18 20:02:04 +00:00
|
|
|
* Creates POSIXFilesystemNode objects.
|
2007-05-03 02:39:33 +00:00
|
|
|
*
|
|
|
|
* Parts of this class are documented in the base interface class, AbstractFilesystemFactory.
|
|
|
|
*/
|
2007-09-18 20:02:04 +00:00
|
|
|
class POSIXFilesystemFactory : public AbstractFilesystemFactory, public Common::Singleton<POSIXFilesystemFactory> {
|
2007-05-03 02:39:33 +00:00
|
|
|
public:
|
|
|
|
typedef Common::String String;
|
|
|
|
|
|
|
|
virtual AbstractFilesystemNode *makeRootFileNode() const;
|
|
|
|
virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
|
|
|
|
virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const;
|
|
|
|
|
|
|
|
protected:
|
2007-09-18 20:02:04 +00:00
|
|
|
POSIXFilesystemFactory() {};
|
2007-05-03 02:39:33 +00:00
|
|
|
|
|
|
|
private:
|
2007-05-12 20:00:52 +00:00
|
|
|
friend class Common::Singleton<SingletonBaseType>;
|
2007-05-03 02:39:33 +00:00
|
|
|
};
|
|
|
|
|
2007-09-18 20:02:04 +00:00
|
|
|
#endif /*POSIX_FILESYSTEM_FACTORY_H*/
|