00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef ZEITGEIST_FILESYSTEM_H
00030 #define ZEITGEIST_FILESYSTEM_H
00031
00032 #include <zeitgeist/class.h>
00033 #include <zeitgeist/leaf.h>
00034 #include <salt/fileclasses.h>
00035
00036
00037 namespace zeitgeist
00038 {
00042 class FileSystem : public Leaf
00043 {
00044
00045
00046
00047 public:
00051 typedef void (*TCallback) (char *filename, void *param);
00052
00053
00054
00055
00056 public:
00058 FileSystem() : Leaf() {}
00059 virtual ~FileSystem() {}
00060
00063 virtual boost::shared_ptr<salt::RFile> Open(const std::string& inName) = 0;
00064
00071 virtual bool SetPath(const std::string& inPath) = 0;
00072
00082 virtual int ForEachFile(const std::string&, TCallback callback,
00083 void* param) = 0;
00084
00085 private:
00086 FileSystem(const FileSystem& obj);
00087 FileSystem& operator=(const FileSystem& obj);
00088 };
00089
00090 DECLARE_ABSTRACTCLASS(FileSystem);
00091
00092 }
00093
00094 #endif //ZEITGEIST_FILESYSTEM_H