LLDir_Solaris Class Reference

#include <lldir_solaris.h>

Inheritance diagram for LLDir_Solaris:

Inheritance graph
[legend]
Collaboration diagram for LLDir_Solaris:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 40 of file lldir_solaris.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Implements LLDir.

Definition at line 227 of file lldir_solaris.cpp.

References g, and NULL.

Referenced by getRandomFileInDir().

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

Implements LLDir.

Definition at line 362 of file lldir_solaris.cpp.

References FALSE, and TRUE.

std::string LLDir_Solaris::getCurPath (  )  [virtual]

Implements LLDir.

Definition at line 354 of file lldir_solaris.cpp.

References LL_MAX_PATH.

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


Member Data Documentation

std::string LLDir_Solaris::mCurrentDir [private]

Definition at line 58 of file lldir_solaris.h.

Referenced by getNextFileInDir().

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]

Definition at line 55 of file lldir_solaris.h.

Referenced by LLDir_Solaris().


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