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/ps2/ps2-fs-factory.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 backends/fs/ps2/ps2-fs-factory.h (limited to 'backends/fs/ps2/ps2-fs-factory.h') diff --git a/backends/fs/ps2/ps2-fs-factory.h b/backends/fs/ps2/ps2-fs-factory.h new file mode 100644 index 0000000000..de7ada6ba3 --- /dev/null +++ b/backends/fs/ps2/ps2-fs-factory.h @@ -0,0 +1,33 @@ +#ifndef PS2_FILESYSTEM_FACTORY_H +#define PS2_FILESYSTEM_FACTORY_H + +#include "backends/fs/abstract-fs-factory.h" + +/** + * Creates PS2FilesystemNode objects. + * + * Parts of this class are documented in the base interface class, AbstractFilesystemFactory. + */ +class Ps2FilesystemFactory : public AbstractFilesystemFactory { +public: + typedef Common::String String; + + /** + * Creates an instance of Ps2FilesystemFactory using the Singleton pattern. + * + * @return A unique instance of Ps2FilesytemFactory. + */ + static Ps2FilesystemFactory *instance(); + + virtual AbstractFilesystemNode *makeRootFileNode() const; + virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; + virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const; + +protected: + Ps2FilesystemFactory() {}; + +private: + static Ps2FilesystemFactory *_instance; +}; + +#endif /*PS2_FILESYSTEM_FACTORY_H*/ -- cgit v1.2.3 From d1f56d93f934150f4b579c2e90564e2bf035f113 Mon Sep 17 00:00:00 2001 From: David Corrales Date: Sat, 12 May 2007 20:00:52 +0000 Subject: Use common/singleton.h in the concrete fs factories. svn-id: r26814 --- backends/fs/ps2/ps2-fs-factory.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'backends/fs/ps2/ps2-fs-factory.h') diff --git a/backends/fs/ps2/ps2-fs-factory.h b/backends/fs/ps2/ps2-fs-factory.h index de7ada6ba3..2dceb5a6dc 100644 --- a/backends/fs/ps2/ps2-fs-factory.h +++ b/backends/fs/ps2/ps2-fs-factory.h @@ -8,16 +8,9 @@ * * Parts of this class are documented in the base interface class, AbstractFilesystemFactory. */ -class Ps2FilesystemFactory : public AbstractFilesystemFactory { +class Ps2FilesystemFactory : public AbstractFilesystemFactory, public Common::Singleton { public: typedef Common::String String; - - /** - * Creates an instance of Ps2FilesystemFactory using the Singleton pattern. - * - * @return A unique instance of Ps2FilesytemFactory. - */ - static Ps2FilesystemFactory *instance(); virtual AbstractFilesystemNode *makeRootFileNode() const; virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; @@ -27,7 +20,7 @@ protected: Ps2FilesystemFactory() {}; private: - static Ps2FilesystemFactory *_instance; + friend class Common::Singleton; }; #endif /*PS2_FILESYSTEM_FACTORY_H*/ -- cgit v1.2.3 From 3e7c5b027e2131cde30d994ccdb27c77f0118ffe Mon Sep 17 00:00:00 2001 From: David Corrales Date: Mon, 4 Jun 2007 03:46:56 +0000 Subject: Added a missing include in non-POSIX factories. For the POSIX and Windows architectures, added exists(), isReadable() and isWritable() svn-id: r27073 --- backends/fs/ps2/ps2-fs-factory.h | 1 + 1 file changed, 1 insertion(+) (limited to 'backends/fs/ps2/ps2-fs-factory.h') diff --git a/backends/fs/ps2/ps2-fs-factory.h b/backends/fs/ps2/ps2-fs-factory.h index 2dceb5a6dc..6f0da114c5 100644 --- a/backends/fs/ps2/ps2-fs-factory.h +++ b/backends/fs/ps2/ps2-fs-factory.h @@ -1,6 +1,7 @@ #ifndef PS2_FILESYSTEM_FACTORY_H #define PS2_FILESYSTEM_FACTORY_H +#include "common/singleton.h" #include "backends/fs/abstract-fs-factory.h" /** -- cgit v1.2.3 From 1400d28bfb37fc94f3c44dec0a4d0cef65fb8fb7 Mon Sep 17 00:00:00 2001 From: David Corrales Date: Wed, 1 Aug 2007 22:07:50 +0000 Subject: Initial commit of the new BaseFile implementation. It provides a common ground for file objects across platforms and divides responsibilities between the Common::File class and a base file implementation. Also rearranged the factories into a new directory for clarity. Note 1: The posix-file.h and cpp files are for testing only. Only the ds, ps2 and symbian architecture will use special BaseFile based objects. Note 2: The current code does not yet make use of this new structure, since the Common::File remains intact. svn-id: r28395 --- backends/fs/ps2/ps2-fs-factory.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 backends/fs/ps2/ps2-fs-factory.h (limited to 'backends/fs/ps2/ps2-fs-factory.h') diff --git a/backends/fs/ps2/ps2-fs-factory.h b/backends/fs/ps2/ps2-fs-factory.h deleted file mode 100644 index 6f0da114c5..0000000000 --- a/backends/fs/ps2/ps2-fs-factory.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef PS2_FILESYSTEM_FACTORY_H -#define PS2_FILESYSTEM_FACTORY_H - -#include "common/singleton.h" -#include "backends/fs/abstract-fs-factory.h" - -/** - * Creates PS2FilesystemNode objects. - * - * Parts of this class are documented in the base interface class, AbstractFilesystemFactory. - */ -class Ps2FilesystemFactory : public AbstractFilesystemFactory, public Common::Singleton { -public: - typedef Common::String String; - - virtual AbstractFilesystemNode *makeRootFileNode() const; - virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; - virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const; - -protected: - Ps2FilesystemFactory() {}; - -private: - friend class Common::Singleton; -}; - -#endif /*PS2_FILESYSTEM_FACTORY_H*/ -- cgit v1.2.3