LLFeatureList Class Reference

#include <llfeaturemanager.h>

Inheritance diagram for LLFeatureList:

Inheritance graph
[legend]
Collaboration diagram for LLFeatureList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFeatureList (const char *name="default")
virtual ~LLFeatureList ()
BOOL isFeatureAvailable (const char *name)
S32 getRecommendedLevel (const char *name)
void setFeatureAvailable (const char *name, const BOOL available)
void setRecommendedLevel (const char *name, const S32 level)
BOOL loadFeatureList (FILE *fp)
BOOL maskList (LLFeatureList &mask)
void addFeature (const char *name, const BOOL available, const S32 level)
void dump ()

Protected Types

typedef std::map< LLString,
LLFeatureInfo
feature_map_t

Protected Attributes

LLString mName
feature_map_t mFeatures

Detailed Description

Definition at line 57 of file llfeaturemanager.h.


Member Typedef Documentation

typedef std::map<LLString, LLFeatureInfo> LLFeatureList::feature_map_t [protected]

Definition at line 78 of file llfeaturemanager.h.


Constructor & Destructor Documentation

LLFeatureList::LLFeatureList ( const char *  name = "default"  ) 

Definition at line 85 of file llfeaturemanager.cpp.

References mName.

Referenced by LLFeatureManager::loadFeatureTables().

LLFeatureList::~LLFeatureList (  )  [virtual]

Definition at line 90 of file llfeaturemanager.cpp.


Member Function Documentation

void LLFeatureList::addFeature ( const char *  name,
const BOOL  available,
const S32  level 
)

Definition at line 94 of file llfeaturemanager.cpp.

References llendl, llwarns, and mFeatures.

Referenced by LLFeatureManager::loadFeatureTables().

void LLFeatureList::dump (  ) 

Definition at line 173 of file llfeaturemanager.cpp.

References llendl, llinfos, LLFeatureInfo::mAvailable, mFeatures, LLFeatureInfo::mName, mName, and LLFeatureInfo::mRecommendedLevel.

Referenced by LLFeatureManager::applyRecommendedFeatures(), and maskList().

S32 LLFeatureList::getRecommendedLevel ( const char *  name  ) 

Definition at line 116 of file llfeaturemanager.cpp.

References llendl, llwarns, and mFeatures.

Referenced by LLFeatureManager::applyRecommendedFeatures().

BOOL LLFeatureList::isFeatureAvailable ( const char *  name  ) 

Definition at line 105 of file llfeaturemanager.cpp.

References FALSE, llendl, llwarns, and mFeatures.

Referenced by LLPipeline::canUseVertexShaders(), display(), LLUseOcclusionListener::handleEvent(), init_debug_rendering_menu(), LLVOSky::initCubeMap(), LLCubeMap::initGL(), LLViewerWindow::LLViewerWindow(), LLDrawPoolWater::prerender(), LLPanelDisplay3::refreshEnabledState(), LLPanelDisplay2::refreshEnabledState(), LLVOSky::restoreGL(), and LLShaderMgr::setShaders().

BOOL LLFeatureList::loadFeatureList ( FILE *  fp  ) 

BOOL LLFeatureList::maskList ( LLFeatureList mask  ) 

Definition at line 127 of file llfeaturemanager.cpp.

References dump(), llendl, llinfos, llmin(), llwarns, mask, LLFeatureInfo::mAvailable, mFeatures, LLFeatureInfo::mName, LLFeatureInfo::mRecommendedLevel, and TRUE.

Referenced by LLFeatureManager::maskFeatures().

void LLFeatureList::setFeatureAvailable ( const char *  name,
const BOOL  available 
)

void LLFeatureList::setRecommendedLevel ( const char *  name,
const S32  level 
)


Member Data Documentation

feature_map_t LLFeatureList::mFeatures [protected]

Definition at line 79 of file llfeaturemanager.h.

Referenced by addFeature(), dump(), getRecommendedLevel(), isFeatureAvailable(), and maskList().

LLString LLFeatureList::mName [protected]

Definition at line 77 of file llfeaturemanager.h.

Referenced by dump(), and LLFeatureList().


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