scummvm/backends/fs/posix/POSIXFilesystemFactory.h
2007-05-03 02:39:33 +00:00

39 lines
986 B
C++

#ifndef POSIXFILESYSTEMFACTORY_H_
#define POSIXFILESYSTEMFACTORY_H_
#include "backends/fs/AbstractFilesystemFactory.h"
/**
* Creates POSIXFilesystemNode objects.
*
* Parts of this class are documented in the base interface class, AbstractFilesystemFactory.
*/
class POSIXFilesystemFactory : public AbstractFilesystemFactory {
public:
typedef Common::String String;
/**
* Creates an instance of POSIXFilesystemFactory using the Singleton pattern.
*
* @return A unique instance of POSIXFilesytemFactory.
*/
static POSIXFilesystemFactory *instance();
/**
* Destructor.
*/
virtual ~POSIXFilesystemFactory() {};
virtual AbstractFilesystemNode *makeRootFileNode() const;
virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const;
protected:
POSIXFilesystemFactory() {};
private:
static POSIXFilesystemFactory *_instance;
};
#endif /*POSIXFILESYSTEMFACTORY_H_*/