lldir_linux.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLDIR_LINUX_H
00033 #define LL_LLDIR_LINUX_H
00034 
00035 #include "lldir.h"
00036 
00037 #include <dirent.h>
00038 #include <errno.h>
00039 
00040 class LLDir_Linux : public LLDir
00041 {
00042 public:
00043         LLDir_Linux();
00044         virtual ~LLDir_Linux();
00045 
00046         virtual void initAppDirs(const std::string &app_name);
00047 public: 
00048         virtual std::string getCurPath();
00049         virtual U32 countFilesInDir(const std::string &dirname, const std::string &mask);
00050         virtual BOOL getNextFileInDir(const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap);
00051         virtual void getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname);
00052         /*virtual*/ BOOL fileExists(const std::string &filename);
00053 
00054 private:
00055         DIR *mDirp;
00056         int mCurrentDirIndex;
00057         int mCurrentDirCount;
00058         std::string mCurrentDir;        
00059 };
00060 
00061 #endif // LL_LLDIR_LINUX_H
00062 
00063 

Generated on Thu Jul 1 06:08:24 2010 for Second Life Viewer by  doxygen 1.4.7