blob: 5e96edc390c5c71cb2ee2ef30e90fb82e7567233 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef DS_FILESYSTEM_FACTORY_H
#define DS_FILESYSTEM_FACTORY_H
#include "backends/fs/abstract-fs-factory.h"
/**
* Creates DSFilesystemNode objects.
*
* Parts of this class are documented in the base interface class, AbstractFilesystemFactory.
*/
class DSFilesystemFactory : public AbstractFilesystemFactory {
public:
typedef Common::String String;
/**
* Creates an instance of DSFilesystemFactory using the Singleton pattern.
*
* @return A unique instance of DSFilesytemFactory.
*/
static DSFilesystemFactory *instance();
virtual AbstractFilesystemNode *makeRootFileNode() const;
virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const;
protected:
DSFilesystemFactory() {};
private:
static DSFilesystemFactory *_instance;
};
#endif /*DS_FILESYSTEM_FACTORY_H*/
|