LLDir Class Reference

#include <lldir.h>

Inheritance diagram for LLDir:

Inheritance graph
[legend]
Collaboration diagram for LLDir:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLDir ()
virtual ~LLDir ()
virtual void initAppDirs (const std::string &app_name)=0
virtual S32 deleteFilesInDir (const std::string &dirname, const std::string &mask)
virtual U32 countFilesInDir (const std::string &dirname, const std::string &mask)=0
virtual BOOL getNextFileInDir (const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap)=0
virtual void getRandomFileInDir (const std::string &dirname, const std::string &mask, std::string &fname)=0
virtual std::string getCurPath ()=0
virtual BOOL fileExists (const std::string &filename)=0
const std::string findFile (const std::string &filename, const std::string searchPath1="", const std::string searchPath2="", const std::string searchPath3="")
const std::string & getExecutablePathAndName () const
const std::string & getAppName () const
const std::string & getExecutableDir () const
const std::string & getExecutableFilename () const
const std::string & getWorkingDir () const
const std::string & getAppRODataDir () const
const std::string & getOSUserDir () const
const std::string & getOSUserAppDir () const
const std::string & getLindenUserDir () const
const std::string & getChatLogsDir () const
const std::string & getPerAccountChatLogsDir () const
const std::string & getTempDir () const
const std::string getCacheDir (bool get_default=false) const
const std::string & getCAFile () const
const std::string & getDirDelimiter () const
const std::string & getSkinDir () const
std::string getExpandedFilename (ELLPath location, const std::string &filename) const
std::string getExpandedFilename (ELLPath location, const std::string &subdir, const std::string &filename) const
std::string getTempFilename () const
virtual void setChatLogsDir (const std::string &path)
virtual void setPerAccountChatLogsDir (const std::string &first, const std::string &last)
virtual void setLindenUserDir (const std::string &first, const std::string &last)
virtual void setSkinFolder (const std::string &skin_folder)
virtual bool setCacheDir (const std::string &path)
virtual void dumpCurrentDirectories ()

Protected Attributes

std::string mAppName
std::string mExecutablePathAndName
std::string mExecutableFilename
std::string mExecutableDir
std::string mWorkingDir
std::string mAppRODataDir
std::string mOSUserDir
std::string mOSUserAppDir
std::string mLindenUserDir
std::string mPerAccountChatLogsDir
std::string mChatLogsDir
std::string mCAFile
std::string mTempDir
std::string mCacheDir
std::string mDirDelimiter
std::string mSkinDir


Detailed Description

Definition at line 57 of file lldir.h.


Constructor & Destructor Documentation

LLDir::LLDir (  ) 

Definition at line 62 of file lldir.cpp.

LLDir::~LLDir (  )  [virtual]

Definition at line 77 of file lldir.cpp.


Member Function Documentation

virtual void LLDir::initAppDirs ( const std::string &  app_name  )  [pure virtual]

Implemented in LLDir_Linux, LLDir_Mac, LLDir_Solaris, and LLDir_Win32.

Referenced by LLAppViewer::init(), LLCrashLogger::init(), and main().

Here is the caller graph for this function:

S32 LLDir::deleteFilesInDir ( const std::string &  dirname,
const std::string &  mask 
) [virtual]

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

virtual BOOL LLDir::getNextFileInDir ( const std::string &  dirname,
const std::string &  mask,
std::string &  fname,
BOOL  wrap 
) [pure virtual]

virtual void LLDir::getRandomFileInDir ( const std::string &  dirname,
const std::string &  mask,
std::string &  fname 
) [pure virtual]

virtual std::string LLDir::getCurPath (  )  [pure virtual]

Implemented in LLDir_Linux, LLDir_Mac, LLDir_Solaris, and LLDir_Win32.

Referenced by dumpCurrentDirectories(), and LLAppViewer::handleViewerCrash().

Here is the caller graph for this function:

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

Implemented in LLDir_Linux, LLDir_Mac, LLDir_Solaris, and LLDir_Win32.

Referenced by findFile(), LLAudioEngine::hasDecodedFile(), LLUI::locateSkin(), and LLWebBrowserCtrl::navigateToLocalPage().

Here is the caller graph for this function:

const std::string LLDir::findFile ( const std::string &  filename,
const std::string  searchPath1 = "",
const std::string  searchPath2 = "",
const std::string  searchPath3 = "" 
)

Definition at line 125 of file lldir.cpp.

References fileExists(), and getDirDelimiter().

Referenced by LLImageJ2C::openDSO().

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string & LLDir::getExecutablePathAndName (  )  const

Definition at line 153 of file lldir.cpp.

References mExecutablePathAndName.

Referenced by dumpCurrentDirectories(), and LLAppViewer::handleViewerCrash().

Here is the caller graph for this function:

const std::string & LLDir::getAppName (  )  const

Definition at line 173 of file lldir.cpp.

References mAppName.

Referenced by dumpCurrentDirectories().

Here is the caller graph for this function:

const std::string & LLDir::getExecutableDir (  )  const

Definition at line 163 of file lldir.cpp.

References mExecutableDir.

Referenced by dumpCurrentDirectories(), LLViewerMedia::initClass(), and LLImageJ2C::openDSO().

Here is the caller graph for this function:

const std::string & LLDir::getExecutableFilename (  )  const

Definition at line 158 of file lldir.cpp.

References mExecutableFilename.

Referenced by LLAppViewerWin32::disableWinErrorReporting(), and dumpCurrentDirectories().

Here is the caller graph for this function:

const std::string & LLDir::getWorkingDir (  )  const

Definition at line 168 of file lldir.cpp.

References mWorkingDir.

Referenced by dumpCurrentDirectories(), LLScriptEdCore::onHelpComboCommit(), and LLScriptEdCore::setHelpPage().

Here is the caller graph for this function:

const std::string & LLDir::getAppRODataDir (  )  const

const std::string & LLDir::getOSUserDir (  )  const

Definition at line 183 of file lldir.cpp.

References mOSUserDir.

Referenced by dumpCurrentDirectories().

Here is the caller graph for this function:

const std::string & LLDir::getOSUserAppDir (  )  const

Definition at line 188 of file lldir.cpp.

References mOSUserAppDir.

Referenced by dumpCurrentDirectories(), getCacheDir(), getExpandedFilename(), idle_startup(), and setLindenUserDir().

Here is the caller graph for this function:

const std::string & LLDir::getLindenUserDir (  )  const

const std::string & LLDir::getChatLogsDir (  )  const

Definition at line 198 of file lldir.cpp.

References mChatLogsDir.

Referenced by getExpandedFilename(), idle_startup(), and setPerAccountChatLogsDir().

Here is the caller graph for this function:

const std::string & LLDir::getPerAccountChatLogsDir (  )  const

Definition at line 203 of file lldir.cpp.

References mPerAccountChatLogsDir.

Referenced by LLPrefsIMImpl::apply(), getExpandedFilename(), and idle_startup().

Here is the caller graph for this function:

const std::string & LLDir::getTempDir (  )  const

Definition at line 208 of file lldir.cpp.

References mTempDir.

Referenced by dumpCurrentDirectories(), getExpandedFilename(), and getTempFilename().

Here is the caller graph for this function:

const std::string LLDir::getCacheDir ( bool  get_default = false  )  const

Definition at line 213 of file lldir.cpp.

References getOSUserAppDir(), mCacheDir, and mDirDelimiter.

Referenced by getExpandedFilename(), LLPanelNetwork::onClickResetCache(), and LLPanelNetwork::onClickSetCache().

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string & LLDir::getCAFile (  )  const

Definition at line 234 of file lldir.cpp.

References mCAFile.

Referenced by dumpCurrentDirectories(), LLCrashLogger::gatherFiles(), LLAppViewer::handleViewerCrash(), and LLAppViewer::mainLoop().

Here is the caller graph for this function:

const std::string & LLDir::getDirDelimiter (  )  const

const std::string & LLDir::getSkinDir (  )  const

Definition at line 244 of file lldir.cpp.

References mSkinDir.

Referenced by dumpCurrentDirectories(), getExpandedFilename(), and LLAppViewer::initConfiguration().

Here is the caller graph for this function:

std::string LLDir::getExpandedFilename ( ELLPath  location,
const std::string &  filename 
) const

Definition at line 249 of file lldir.cpp.

Referenced by LLAppViewer::anotherInstanceRunning(), LLMuteList::cache(), LLInventoryModel::cache(), LLAppViewer::cleanup(), LLAppViewer::closeDebug(), LLFloaterCompileQueue::compile(), LLVoiceClient::connectorCreate(), do_basic_glibc_backtrace(), LLViewerImageList::doPrefetchImages(), LLViewerImageList::doPreloadImages(), LLFrameStats::dump(), LLVOAvatar::dumpArchetypeXML(), LLCrashLogger::gatherFiles(), LLCrashLoggerWindows::gatherPlatformSpecificFiles(), LLCrashLoggerLinux::gatherPlatformSpecificFiles(), LLTexStaticImageList::getImageTGA(), LLTextureCache::getLocalFileName(), LLPolyMesh::getMesh(), handle_reload_settings(), LLAppViewer::handleViewerCrash(), LLAudioEngine::hasDecodedFile(), idle_startup(), LLInventoryView::init(), LLAppViewer::init(), LLCrashLogger::init(), LLDir_Solaris::initAppDirs(), LLDir_Linux::initAppDirs(), LLAppViewer::initCache(), LLVOTree::initClass(), LLVOGrass::initClass(), LLVOAvatar::initClass(), LLViewerMedia::initClass(), LLAppViewer::initConfiguration(), LLAppViewerLinux::initLogging(), LLAppViewer::initLogging(), LLAppViewer::initMarkerFile(), LLAssetStorage::legacyGetDataCallback(), LLDrawPoolWLSky::LLDrawPoolWLSky(), LLMuteList::LLMuteList(), LLPostProcess::LLPostProcess(), LLViewerImage::LLViewerImage(), LLUrlWhiteList::load(), LLGenePool::load(), LLAudioData::load(), load_password_from_disk(), LLWaterParamManager::loadAllPresets(), loadAttentions(), LLViewerRegion::loadCache(), LLCrashLogger::loadCrashBehaviorSetting(), LLWLDayCycle::loadDayCycle(), LLTexStaticImageList::loadImageRaw(), LLKeyframeMotionParam::loadMotions(), LLAppViewer::loadNameCache(), LLWLParamManager::loadPreset(), LLWaterParamManager::loadPreset(), LLWLParamManager::loadPresets(), LLAppViewer::loadSettingsFromDirectory(), LLShaderMgr::loadShaderFile(), LLInventoryModel::loadSkeleton(), LLViewerObject::loadTaskInvFile(), LLBVHLoader::loadTranslationTable(), LLUI::locateSkin(), LLWebBrowserCtrl::navigateToLocalPage(), LLFloaterPreference::onBtnOK(), LLLiveLSLEditor::onSaveBytecodeComplete(), LLPreviewNotecard::onSaveComplete(), LLWearable::onSaveNewAssetComplete(), LLPanelNetwork::postBuild(), LLXferManager::processFileRequest(), LLMuteList::processMuteListUpdate(), LLAudioDecodeMgr::Impl::processQueue(), LLViewerObject::processTaskInv(), LLVOVolume::processUpdateMessage(), LLMuteList::processUseCachedMuteList(), LLAppViewer::purgeCache(), reload_personal_settings_overrides(), LLAppViewer::removeCacheFiles(), LLWLParamManager::removeParamSet(), LLWaterParamManager::removeParamSet(), LLMuteList::requestFromServer(), LLStandardBumpmap::restoreGL(), LLUrlWhiteList::save(), save_password_to_disk(), LLViewerRegion::saveCache(), LLCrashLogger::saveCrashBehaviorSetting(), LLWLDayCycle::saveDayCycle(), LLPostProcess::saveEffect(), LLLiveLSLEditor::saveIfNeeded(), LLPreviewLSL::saveIfNeeded(), LLAppViewer::saveNameCache(), LLWearable::saveNewAsset(), LLWLParamManager::savePreset(), LLWaterParamManager::savePreset(), LLWLParamManager::savePresets(), LLFloaterCompileQueue::scriptArrived(), LLCrashLogger::sendCrashLogs(), LLAppViewer::sendLogoutRequest(), LLTextureCache::setDirNames(), LLUICtrlFactory::setupPaths(), LLViewerImageList::shutdown(), updatethreadproc(), LLLiveLSLEditor::uploadAssetLegacy(), LLPreviewLSL::uploadAssetLegacy(), LLInventoryView::~LLInventoryView(), and LLMuteList::~LLMuteList().

std::string LLDir::getExpandedFilename ( ELLPath  location,
const std::string &  subdir,
const std::string &  filename 
) const

std::string LLDir::getTempFilename (  )  const

Definition at line 384 of file lldir.cpp.

References LLUUID::generate(), getTempDir(), mDirDelimiter, and LLUUID::toString().

Referenced by LLXfer_File::initializeRequest(), update_dialog_callback(), and upload_new_resource().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDir::setChatLogsDir ( const std::string &  path  )  [virtual]

Definition at line 425 of file lldir.cpp.

References llendl, llwarns, and mChatLogsDir.

Referenced by LLPrefsIMImpl::apply(), and idle_startup().

Here is the caller graph for this function:

void LLDir::setPerAccountChatLogsDir ( const std::string &  first,
const std::string &  last 
) [virtual]

Definition at line 437 of file lldir.cpp.

References getChatLogsDir(), llendl, llwarns, mDirDelimiter, mPerAccountChatLogsDir, and LLStringBase< char >::toLower().

Referenced by LLPrefsIMImpl::apply(), and idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDir::setLindenUserDir ( const std::string &  first,
const std::string &  last 
) [virtual]

Definition at line 400 of file lldir.cpp.

References dumpCurrentDirectories(), getOSUserAppDir(), llendl, llerrs, mDirDelimiter, mLindenUserDir, and LLStringBase< char >::toLower().

Referenced by idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDir::setSkinFolder ( const std::string &  skin_folder  )  [virtual]

Definition at line 460 of file lldir.cpp.

References getAppRODataDir(), mDirDelimiter, and mSkinDir.

Referenced by LLAppViewer::initConfiguration().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLDir::setCacheDir ( const std::string &  path  )  [virtual]

Definition at line 469 of file lldir.cpp.

References LLFile::fopen(), mCacheDir, mDirDelimiter, LLFile::mkdir(), and LLFile::remove().

Referenced by LLAppViewer::initCache().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDir::dumpCurrentDirectories (  )  [virtual]

Definition at line 493 of file lldir.cpp.

References getAppName(), getAppRODataDir(), getCAFile(), getCurPath(), getExecutableDir(), getExecutableFilename(), getExecutablePathAndName(), getLindenUserDir(), getOSUserAppDir(), getOSUserDir(), getSkinDir(), getTempDir(), getWorkingDir(), LL_DEBUGS2, and LL_ENDL.

Referenced by setLindenUserDir().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::string LLDir::mAppName [protected]

Definition at line 108 of file lldir.h.

Referenced by getAppName(), LLDir_Solaris::initAppDirs(), and LLDir_Linux::initAppDirs().

std::string LLDir::mExecutablePathAndName [protected]

std::string LLDir::mExecutableFilename [protected]

std::string LLDir::mExecutableDir [protected]

std::string LLDir::mWorkingDir [protected]

Definition at line 112 of file lldir.h.

Referenced by getWorkingDir(), LLDir_Linux::LLDir_Linux(), and LLDir_Solaris::LLDir_Solaris().

std::string LLDir::mAppRODataDir [protected]

std::string LLDir::mOSUserDir [protected]

std::string LLDir::mOSUserAppDir [protected]

std::string LLDir::mLindenUserDir [protected]

std::string LLDir::mPerAccountChatLogsDir [protected]

Definition at line 117 of file lldir.h.

Referenced by getPerAccountChatLogsDir(), and setPerAccountChatLogsDir().

std::string LLDir::mChatLogsDir [protected]

Definition at line 118 of file lldir.h.

Referenced by getChatLogsDir(), and setChatLogsDir().

std::string LLDir::mCAFile [protected]

Definition at line 119 of file lldir.h.

Referenced by getCAFile(), LLDir_Solaris::initAppDirs(), and LLDir_Linux::initAppDirs().

std::string LLDir::mTempDir [protected]

Definition at line 120 of file lldir.h.

Referenced by getTempDir(), LLDir_Linux::LLDir_Linux(), and LLDir_Solaris::LLDir_Solaris().

std::string LLDir::mCacheDir [protected]

Definition at line 121 of file lldir.h.

Referenced by getCacheDir(), and setCacheDir().

std::string LLDir::mDirDelimiter [protected]

std::string LLDir::mSkinDir [protected]

Definition at line 123 of file lldir.h.

Referenced by getSkinDir(), and setSkinFolder().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:43:44 2008 for SecondLife by  doxygen 1.5.5