SuperTuxKart
Public Member Functions | Private Types | Private Attributes | List of all members
GraphicsRestrictions::Rule Class Reference
Inheritance diagram for GraphicsRestrictions::Rule:
Inheritance graph
[legend]

Public Member Functions

 Rule (const XMLNode *rule)
 
void addVersion (std::string version)
 
bool applies (const std::string &card, const Version &version, const std::string &vendor) const
 
const std::vector< std::string > & getRestrictions () const
 Returns a list of options to disable. More...
 

Private Types

enum  { CARD_IGNORE, CARD_IS, CARD_CONTAINS }
 Operators to test for a card. More...
 
enum  VersionTest {
  VERSION_IGNORE, VERSION_EQUAL, VERSION_LESS, VERSION_LESS_EQUAL,
  VERSION_MORE, VERSION_MORE_EQUAL
}
 Operators to test version numbers with. More...
 

Private Attributes

enum GraphicsRestrictions::Rule:: { ... }  m_card_test
 Operators to test for a card. More...
 
std::string m_card_name
 Name of the card for which this rule applies. More...
 
std::vector< VersionTestm_version_tests
 
std::vector< Versionm_driver_versions
 Driver version for which this rule applies. More...
 
std::string m_os
 For which OS this rule applies. More...
 
std::string m_vendor
 For which vendor this rule applies. More...
 
std::vector< std::string > m_disable_options
 Which options to disable. More...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Operators to test for a card.

◆ VersionTest

Operators to test version numbers with.

Member Function Documentation

◆ getRestrictions()

const std::vector<std::string>& GraphicsRestrictions::Rule::getRestrictions ( ) const
inline

Returns a list of options to disable.

Member Data Documentation

◆ m_card_name

std::string GraphicsRestrictions::Rule::m_card_name
private

Name of the card for which this rule applies.

◆ m_card_test

enum { ... } GraphicsRestrictions::Rule::m_card_test

Operators to test for a card.

◆ m_disable_options

std::vector<std::string> GraphicsRestrictions::Rule::m_disable_options
private

Which options to disable.

◆ m_driver_versions

std::vector<Version> GraphicsRestrictions::Rule::m_driver_versions
private

Driver version for which this rule applies.

◆ m_os

std::string GraphicsRestrictions::Rule::m_os
private

For which OS this rule applies.

◆ m_vendor

std::string GraphicsRestrictions::Rule::m_vendor
private

For which vendor this rule applies.


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