diff options
Diffstat (limited to 'backends/fs/gp32/gp32-fs-factory.h')
-rw-r--r-- | backends/fs/gp32/gp32-fs-factory.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/backends/fs/gp32/gp32-fs-factory.h b/backends/fs/gp32/gp32-fs-factory.h new file mode 100644 index 0000000000..1b34597d84 --- /dev/null +++ b/backends/fs/gp32/gp32-fs-factory.h @@ -0,0 +1,33 @@ +#ifndef GP32_FILESYSTEM_FACTORY_H +#define GP32_FILESYSTEM_FACTORY_H + +#include "backends/fs/abstract-fs-factory.h" + +/** + * Creates GP32FilesystemNode objects. + * + * Parts of this class are documented in the base interface class, AbstractFilesystemFactory. + */ +class GP32FilesystemFactory : public AbstractFilesystemFactory { +public: + typedef Common::String String; + + /** + * Creates an instance of GP32FilesystemFactory using the Singleton pattern. + * + * @return A unique instance of GP32FilesytemFactory. + */ + static GP32FilesystemFactory *instance(); + + virtual AbstractFilesystemNode *makeRootFileNode() const; + virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; + virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const; + +protected: + GP32FilesystemFactory() {}; + +private: + static GP32FilesystemFactory *_instance; +}; + +#endif /*GP32_FILESYSTEM_FACTORY_H*/ |