aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/palmos/PalmOSFilesystemFactory.h
blob: dd1f31b3c8c61e1aa7c4d2bc4a89778699619aca (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
34
35
36
37
38
#ifndef PALMOSFILESYSTEMFACTORY_H_
#define PALMOSFILESYSTEMFACTORY_H_

#include "backends/fs/AbstractFilesystemFactory.h"

/**
 * Creates PalmOSFilesystemNode objects.
 * 
 * Parts of this class are documented in the base interface class, AbstractFilesystemFactory.
 */
class PalmOSFilesystemFactory : public AbstractFilesystemFactory {	
public:
	typedef Common::String String;
	
	/**
	 * Creates an instance of PalmOSFilesystemFactory using the Singleton pattern.
	 * 
	 * @return A unique instance of PalmOSFilesytemFactory.
	 */
	static PalmOSFilesystemFactory *instance();
	
	/**
	 * Destructor.
	 */
	virtual ~PalmOSFilesystemFactory() {};
		
	virtual AbstractFilesystemNode *makeRootFileNode() const;
	virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
	virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const;
	
protected:
	PalmOSFilesystemFactory() {};
		
private:
	static PalmOSFilesystemFactory *_instance;
};

#endif /*PALMOSFILESYSTEMFACTORY_H_*/