aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/morphos/abox-fs-factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/fs/morphos/abox-fs-factory.cpp')
-rw-r--r--backends/fs/morphos/abox-fs-factory.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/backends/fs/morphos/abox-fs-factory.cpp b/backends/fs/morphos/abox-fs-factory.cpp
new file mode 100644
index 0000000000..4689a6a42f
--- /dev/null
+++ b/backends/fs/morphos/abox-fs-factory.cpp
@@ -0,0 +1,23 @@
+#include "backends/fs/morphos/abox-fs-factory.h"
+#include "backends/fs/morphos/abox-fs.cpp"
+
+ABoxFilesystemFactory *ABoxFilesystemFactory::_instance = 0;
+
+ABoxFilesystemFactory *ABoxFilesystemFactory::instance(){
+ if(_instance == 0){
+ _instance = new ABoxFilesystemFactory();
+ }
+ return _instance;
+}
+
+AbstractFilesystemNode *ABoxFilesystemFactory::makeRootFileNode() const {
+ return new ABoxFilesystemNode();
+}
+
+AbstractFilesystemNode *ABoxFilesystemFactory::makeCurrentDirectoryFileNode() const {
+ return new ABoxFilesystemNode();
+}
+
+AbstractFilesystemNode *ABoxFilesystemFactory::makeFileNodePath(const String &path) const {
+ return new ABoxFilesystemNode(path);
+}