#include <lldir_linux.h>
Inheritance diagram for LLDir_Linux:
Public Member Functions | |
LLDir_Linux () | |
virtual | ~LLDir_Linux () |
virtual void | initAppDirs (const std::string &app_name) |
virtual std::string | getCurPath () |
virtual U32 | countFilesInDir (const std::string &dirname, const std::string &mask) |
virtual BOOL | getNextFileInDir (const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap) |
virtual void | getRandomFileInDir (const std::string &dirname, const std::string &mask, std::string &fname) |
BOOL | fileExists (const std::string &filename) |
Private Attributes | |
DIR * | mDirp |
int | mCurrentDirIndex |
int | mCurrentDirCount |
std::string | mCurrentDir |
Definition at line 40 of file lldir_linux.h.
LLDir_Linux::LLDir_Linux | ( | ) |
Definition at line 73 of file lldir_linux.cpp.
References getCurrentUserHome(), LL_MAX_PATH, llendl, llerrs, llwarns, LLDir::mAppRODataDir, mCurrentDirCount, mCurrentDirIndex, LLDir::mDirDelimiter, mDirp, LLDir::mExecutableDir, LLDir::mExecutableFilename, LLDir::mExecutablePathAndName, LLDir::mLindenUserDir, LLDir::mOSUserAppDir, LLDir::mOSUserDir, LLDir::mTempDir, LLDir::mWorkingDir, and NULL.
LLDir_Linux::~LLDir_Linux | ( | ) | [virtual] |
Definition at line 130 of file lldir_linux.cpp.
U32 LLDir_Linux::countFilesInDir | ( | const std::string & | dirname, | |
const std::string & | mask | |||
) | [virtual] |
Implements LLDir.
Definition at line 213 of file lldir_linux.cpp.
Referenced by getRandomFileInDir().
BOOL LLDir_Linux::fileExists | ( | const std::string & | filename | ) | [virtual] |
std::string LLDir_Linux::getCurPath | ( | ) | [virtual] |
Implements LLDir.
Definition at line 340 of file lldir_linux.cpp.
References LL_MAX_PATH, llendl, llwarns, and NULL.
BOOL LLDir_Linux::getNextFileInDir | ( | const std::string & | dirname, | |
const std::string & | mask, | |||
std::string & | fname, | |||
BOOL | wrap | |||
) | [virtual] |
Implements LLDir.
Definition at line 234 of file lldir_linux.cpp.
References FALSE, g, mCurrentDir, mCurrentDirCount, mCurrentDirIndex, NULL, s, and TRUE.
void LLDir_Linux::getRandomFileInDir | ( | const std::string & | dirname, | |
const std::string & | mask, | |||
std::string & | fname | |||
) | [virtual] |
Implements LLDir.
Definition at line 300 of file lldir_linux.cpp.
References countFilesInDir(), ll_rand(), NULL, and S32.
void LLDir_Linux::initAppDirs | ( | const std::string & | app_name | ) | [virtual] |
Implements LLDir.
Definition at line 137 of file lldir_linux.cpp.
References LLDir::getExpandedFilename(), LL_PATH_APP_SETTINGS, LL_PATH_CACHE, LL_PATH_LOGS, LL_PATH_MOZILLA_PROFILE, LL_PATH_USER_SETTINGS, llendl, llwarns, LLDir::mAppName, LLDir::mCAFile, LLFile::mkdir(), LLDir::mOSUserAppDir, LLDir::mOSUserDir, LLStringBase< char >::toLower(), and LLStringBase< char >::toUpper().
std::string LLDir_Linux::mCurrentDir [private] |
int LLDir_Linux::mCurrentDirCount [private] |
int LLDir_Linux::mCurrentDirIndex [private] |
DIR* LLDir_Linux::mDirp [private] |