From 86324f00bc561c03b281170125ef2fde14cae132 Mon Sep 17 00:00:00 2001 From: David Corrales Date: Sat, 12 May 2007 18:17:40 +0000 Subject: Renamed files and minor tweaks. Thanks LordHoto :) svn-id: r26810 --- backends/fs/psp/PSPFilesystemFactory.cpp | 23 ------------------- backends/fs/psp/PSPFilesystemFactory.h | 38 -------------------------------- backends/fs/psp/psp-fs-factory.cpp | 23 +++++++++++++++++++ backends/fs/psp/psp-fs-factory.h | 33 +++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 61 deletions(-) delete mode 100644 backends/fs/psp/PSPFilesystemFactory.cpp delete mode 100644 backends/fs/psp/PSPFilesystemFactory.h create mode 100644 backends/fs/psp/psp-fs-factory.cpp create mode 100644 backends/fs/psp/psp-fs-factory.h (limited to 'backends/fs/psp') diff --git a/backends/fs/psp/PSPFilesystemFactory.cpp b/backends/fs/psp/PSPFilesystemFactory.cpp deleted file mode 100644 index 5a3802c10a..0000000000 --- a/backends/fs/psp/PSPFilesystemFactory.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "backends/fs/psp/PSPFilesystemFactory.h" -#include "backends/fs/psp/psp_fs.cpp" - -PSPFilesystemFactory *PSPFilesystemFactory::_instance = 0; - -PSPFilesystemFactory *PSPFilesystemFactory::instance(){ - if(_instance == 0){ - _instance = new PSPFilesystemFactory(); - } - return _instance; -} - -AbstractFilesystemNode *PSPFilesystemFactory::makeRootFileNode() const { - return new PSPFilesystemNode(); -} - -AbstractFilesystemNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const { - return new PSPFilesystemNode(); -} - -AbstractFilesystemNode *PSPFilesystemFactory::makeFileNodePath(const String &path) const { - return new PSPFilesystemNode(path, true); -} diff --git a/backends/fs/psp/PSPFilesystemFactory.h b/backends/fs/psp/PSPFilesystemFactory.h deleted file mode 100644 index 70358c90ed..0000000000 --- a/backends/fs/psp/PSPFilesystemFactory.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef PSPFILESYSTEMFACTORY_H_ -#define PSPFILESYSTEMFACTORY_H_ - -#include "backends/fs/AbstractFilesystemFactory.h" - -/** - * Creates PSPFilesystemNode objects. - * - * Parts of this class are documented in the base interface class, AbstractFilesystemFactory. - */ -class PSPFilesystemFactory : public AbstractFilesystemFactory { -public: - typedef Common::String String; - - /** - * Creates an instance of PSPFilesystemFactory using the Singleton pattern. - * - * @return A unique instance of PSPFilesytemFactory. - */ - static PSPFilesystemFactory *instance(); - - /** - * Destructor. - */ - virtual ~PSPFilesystemFactory() {}; - - virtual AbstractFilesystemNode *makeRootFileNode() const; - virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; - virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const; - -protected: - PSPFilesystemFactory() {}; - -private: - static PSPFilesystemFactory *_instance; -}; - -#endif /*PSPFILESYSTEMFACTORY_H_*/ diff --git a/backends/fs/psp/psp-fs-factory.cpp b/backends/fs/psp/psp-fs-factory.cpp new file mode 100644 index 0000000000..2a0307d3f4 --- /dev/null +++ b/backends/fs/psp/psp-fs-factory.cpp @@ -0,0 +1,23 @@ +#include "backends/fs/psp/psp-fs-factory.h" +#include "backends/fs/psp/psp_fs.cpp" + +PSPFilesystemFactory *PSPFilesystemFactory::_instance = 0; + +PSPFilesystemFactory *PSPFilesystemFactory::instance(){ + if(_instance == 0){ + _instance = new PSPFilesystemFactory(); + } + return _instance; +} + +AbstractFilesystemNode *PSPFilesystemFactory::makeRootFileNode() const { + return new PSPFilesystemNode(); +} + +AbstractFilesystemNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const { + return new PSPFilesystemNode(); +} + +AbstractFilesystemNode *PSPFilesystemFactory::makeFileNodePath(const String &path) const { + return new PSPFilesystemNode(path, true); +} diff --git a/backends/fs/psp/psp-fs-factory.h b/backends/fs/psp/psp-fs-factory.h new file mode 100644 index 0000000000..05388fa697 --- /dev/null +++ b/backends/fs/psp/psp-fs-factory.h @@ -0,0 +1,33 @@ +#ifndef PSP_FILESYSTEM_FACTORY_H +#define PSP_FILESYSTEM_FACTORY_H + +#include "backends/fs/abstract-fs-factory.h" + +/** + * Creates PSPFilesystemNode objects. + * + * Parts of this class are documented in the base interface class, AbstractFilesystemFactory. + */ +class PSPFilesystemFactory : public AbstractFilesystemFactory { +public: + typedef Common::String String; + + /** + * Creates an instance of PSPFilesystemFactory using the Singleton pattern. + * + * @return A unique instance of PSPFilesytemFactory. + */ + static PSPFilesystemFactory *instance(); + + virtual AbstractFilesystemNode *makeRootFileNode() const; + virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; + virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const; + +protected: + PSPFilesystemFactory() {}; + +private: + static PSPFilesystemFactory *_instance; +}; + +#endif /*PSP_FILESYSTEM_FACTORY_H*/ -- cgit v1.2.3