#include <lldir_solaris.h>
Inheritance diagram for LLDir_Solaris:
Public Member Functions | |
LLDir_Solaris () | |
virtual | ~LLDir_Solaris () |
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_solaris.h.
LLDir_Solaris::LLDir_Solaris | ( | ) |
Definition at line 77 of file lldir_solaris.cpp.
References getCurrentUserHome(), LL_MAX_PATH, llendl, llinfos, llwarns, LLDir::mAppRODataDir, mCurrentDirCount, mCurrentDirIndex, LLDir::mDirDelimiter, mDirp, LLDir::mExecutableDir, LLDir::mExecutableFilename, LLDir::mExecutablePathAndName, LLDir::mLindenUserDir, LLDir::mOSUserAppDir, LLDir::mOSUserDir, LLDir::mTempDir, LLDir::mWorkingDir, NULL, and s.
LLDir_Solaris::~LLDir_Solaris | ( | ) | [virtual] |
Definition at line 144 of file lldir_solaris.cpp.
U32 LLDir_Solaris::countFilesInDir | ( | const std::string & | dirname, | |
const std::string & | mask | |||
) | [virtual] |
Implements LLDir.
Definition at line 227 of file lldir_solaris.cpp.
Referenced by getRandomFileInDir().
BOOL LLDir_Solaris::fileExists | ( | const std::string & | filename | ) | [virtual] |
std::string LLDir_Solaris::getCurPath | ( | ) | [virtual] |
BOOL LLDir_Solaris::getNextFileInDir | ( | const std::string & | dirname, | |
const std::string & | mask, | |||
std::string & | fname, | |||
BOOL | wrap | |||
) | [virtual] |
Implements LLDir.
Definition at line 248 of file lldir_solaris.cpp.
References FALSE, g, mCurrentDir, mCurrentDirCount, mCurrentDirIndex, NULL, s, and TRUE.
void LLDir_Solaris::getRandomFileInDir | ( | const std::string & | dirname, | |
const std::string & | mask, | |||
std::string & | fname | |||
) | [virtual] |
Implements LLDir.
Definition at line 314 of file lldir_solaris.cpp.
References countFilesInDir(), ll_rand(), NULL, and S32.
void LLDir_Solaris::initAppDirs | ( | const std::string & | app_name | ) | [virtual] |
Implements LLDir.
Definition at line 151 of file lldir_solaris.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_Solaris::mCurrentDir [private] |
int LLDir_Solaris::mCurrentDirCount [private] |
Definition at line 57 of file lldir_solaris.h.
Referenced by getNextFileInDir(), and LLDir_Solaris().
int LLDir_Solaris::mCurrentDirIndex [private] |
Definition at line 56 of file lldir_solaris.h.
Referenced by getNextFileInDir(), and LLDir_Solaris().
DIR* LLDir_Solaris::mDirp [private] |