LLFeatureManager Class Reference

#include <llfeaturemanager.h>

Inheritance diagram for LLFeatureManager:

Inheritance graph
Collaboration diagram for LLFeatureManager:

Collaboration graph
List of all members.

Public Member Functions

 LLFeatureManager ()
void maskCurrentList (const char *name)
BOOL loadFeatureTables ()
S32 getGPUClass ()
std::string & getGPUString ()
void cleanupFeatureTables ()
S32 getVersion () const
void setSafe (const BOOL safe)
BOOL isSafe () const
LLFeatureListfindMask (const char *name)
BOOL maskFeatures (const char *name)
void initCPUFeatureMasks ()
void initGraphicsFeatureMasks ()
void applyRecommendedFeatures ()

Protected Member Functions

void loadGPUClass ()
void initBaseMask ()

Protected Attributes

std::map< LLString, LLFeatureList * > mMaskList
BOOL mInited
S32 mTableVersion
BOOL mSafe
S32 mGPUClass
std::string mGPUString

Detailed Description

Definition at line 83 of file llfeaturemanager.h.

Constructor & Destructor Documentation

LLFeatureManager::LLFeatureManager (  )  [inline]

Definition at line 86 of file llfeaturemanager.h.

Member Function Documentation

void LLFeatureManager::applyRecommendedFeatures (  ) 

Definition at line 498 of file llfeaturemanager.cpp.

References LLFeatureList::dump(), FALSE, LLViewerImageList::getMaxVideoRamSetting(), LLFeatureList::getRecommendedLevel(), LLControlGroup::getS32(), gSavedSettings, isSafe(), llendl, llinfos, S32, LLDrawPoolTerrain::sDetailMode, LLControlGroup::setBOOL(), LLControlGroup::setF32(), LLViewerPartSim::setMaxPartCount(), LLControlGroup::setS32(), LLImageGL::sGlobalUseAnisotropic, and TRUE.

Referenced by LLViewerWindow::LLViewerWindow().

void LLFeatureManager::cleanupFeatureTables (  ) 

Definition at line 399 of file llfeaturemanager.cpp.

References mMaskList.

Referenced by main().

LLFeatureList * LLFeatureManager::findMask ( const char *  name  ) 

Definition at line 188 of file llfeaturemanager.cpp.

References mMaskList, and NULL.

Referenced by maskFeatures().

S32 LLFeatureManager::getGPUClass (  )  [inline]

Definition at line 92 of file llfeaturemanager.h.

References mGPUClass.

Referenced by send_stats().

std::string& LLFeatureManager::getGPUString (  )  [inline]

Definition at line 93 of file llfeaturemanager.h.

References mGPUString.

Referenced by send_stats().

S32 LLFeatureManager::getVersion (  )  const [inline]

Definition at line 97 of file llfeaturemanager.h.

References mTableVersion.

Referenced by idle_startup(), and LLViewerWindow::LLViewerWindow().

void LLFeatureManager::initBaseMask (  )  [protected]

void LLFeatureManager::initCPUFeatureMasks (  ) 

Definition at line 406 of file llfeaturemanager.cpp.

References LLCPUInfo::getMhz(), LLMemoryInfo::getPhysicalMemoryClamped(), gSysCPU, gSysMemory, isSafe(), and maskFeatures().

Referenced by main().

void LLFeatureManager::initGraphicsFeatureMasks (  ) 

Definition at line 428 of file llfeaturemanager.cpp.

References gGLManager, isSafe(), llendl, llinfos, loadGPUClass(), maskFeatures(), LLGLManager::mGLVersion, mGPUClass, mGPUString, LLGLManager::mHasFragmentShader, LLGLManager::mHasVertexShader, LLGLManager::mIsATI, LLGLManager::mIsGF2or4MX, LLGLManager::mIsGFFX, LLGLManager::mIsIntel, and LLGLManager::mIsNVIDIA.

Referenced by LLViewerWindow::LLViewerWindow().

BOOL LLFeatureManager::isSafe (  )  const [inline]

Definition at line 99 of file llfeaturemanager.h.

References mSafe.

Referenced by applyRecommendedFeatures(), idle_startup(), initCPUFeatureMasks(), initGraphicsFeatureMasks(), and LLViewerWindow::LLViewerWindow().

BOOL LLFeatureManager::loadFeatureTables (  ) 

Definition at line 210 of file llfeaturemanager.cpp.

References LLFeatureList::addFeature(), FALSE, FEATURE_TABLE_FILENAME, gDirUtilp, LLDir::getAppRODataDir(), LLDir::getDirDelimiter(), llendl, llerrs, LLFeatureList::LLFeatureList(), llifstream, llwarns, MAX_STRING, mMaskList, mTableVersion, NULL, S32, and TRUE.

Referenced by main().

void LLFeatureManager::loadGPUClass (  )  [protected]

Definition at line 310 of file llfeaturemanager.cpp.

References gDirUtilp, LLDir::getAppRODataDir(), LLDir::getDirDelimiter(), LLGLManager::getRawGLString(), gGLManager, GPU_TABLE_FILENAME, i, llendl, llifstream, llinfos, llwarns, MAX_STRING, mGPUClass, mGPUString, NULL, and S32.

Referenced by initGraphicsFeatureMasks().

void LLFeatureManager::maskCurrentList ( const char *  name  ) 

BOOL LLFeatureManager::maskFeatures ( const char *  name  ) 

Definition at line 198 of file llfeaturemanager.cpp.

References FALSE, findMask(), llendl, llinfos, and LLFeatureList::maskList().

Referenced by initCPUFeatureMasks(), and initGraphicsFeatureMasks().

void LLFeatureManager::setSafe ( const BOOL  safe  )  [inline]

Definition at line 98 of file llfeaturemanager.h.

References mSafe.

Member Data Documentation

S32 LLFeatureManager::mGPUClass [protected]

Definition at line 118 of file llfeaturemanager.h.

Referenced by getGPUClass(), initGraphicsFeatureMasks(), and loadGPUClass().

std::string LLFeatureManager::mGPUString [protected]

Definition at line 119 of file llfeaturemanager.h.

Referenced by getGPUString(), initGraphicsFeatureMasks(), and loadGPUClass().

BOOL LLFeatureManager::mInited [protected]

Definition at line 115 of file llfeaturemanager.h.

std::map<LLString, LLFeatureList *> LLFeatureManager::mMaskList [protected]

Definition at line 114 of file llfeaturemanager.h.

Referenced by cleanupFeatureTables(), findMask(), and loadFeatureTables().

BOOL LLFeatureManager::mSafe [protected]

Definition at line 117 of file llfeaturemanager.h.

Referenced by isSafe(), and setSafe().

S32 LLFeatureManager::mTableVersion [protected]

Definition at line 116 of file llfeaturemanager.h.

Referenced by getVersion(), and loadFeatureTables().

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