aboutsummaryrefslogtreecommitdiff
path: root/backends/factories/windows/windows-fs-factory.cpp
blob: 55c48c3b9cd061f0901aeeef32f8c13a677c7b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "backends/factories/windows/windows-fs-factory.h"
#include "backends/fs/windows/windows-fs.cpp"
#include "backends/file/base-file.h"

DECLARE_SINGLETON(WindowsFilesystemFactory);

AbstractFilesystemNode *WindowsFilesystemFactory::makeRootFileNode() const {
	return new WindowsFilesystemNode();
}

AbstractFilesystemNode *WindowsFilesystemFactory::makeCurrentDirectoryFileNode() const {
	return new WindowsFilesystemNode("", true);
}

AbstractFilesystemNode *WindowsFilesystemFactory::makeFileNodePath(const String &path) const {
	return new WindowsFilesystemNode(path, false);
}

BaseFile *WindowsFilesystemFactory::makeBaseFile() const {
	return new BaseFile();
}