LLDir_Linux Class Reference

#include <lldir_linux.h>

Inheritance diagram for LLDir_Linux:

Inheritance graph
[legend]
Collaboration diagram for LLDir_Linux:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 40 of file lldir_linux.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

U32 LLDir_Linux::countFilesInDir ( const std::string &  dirname,
const std::string &  mask 
) [virtual]

Implements LLDir.

Definition at line 213 of file lldir_linux.cpp.

References g, and NULL.

Referenced by getRandomFileInDir().

BOOL LLDir_Linux::fileExists ( const std::string &  filename  )  [virtual]

Implements LLDir.

Definition at line 352 of file lldir_linux.cpp.

References FALSE, and TRUE.

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().


Member Data Documentation

std::string LLDir_Linux::mCurrentDir [private]

Definition at line 58 of file lldir_linux.h.

Referenced by getNextFileInDir().

int LLDir_Linux::mCurrentDirCount [private]

Definition at line 57 of file lldir_linux.h.

Referenced by getNextFileInDir(), and LLDir_Linux().

int LLDir_Linux::mCurrentDirIndex [private]

Definition at line 56 of file lldir_linux.h.

Referenced by getNextFileInDir(), and LLDir_Linux().

DIR* LLDir_Linux::mDirp [private]

Definition at line 55 of file lldir_linux.h.

Referenced by LLDir_Linux().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:14 2010 for Second Life Viewer by  doxygen 1.4.7