Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CTextureRule Class Reference

#include <TextureDatabase.h>

Inheritance diagram for CTextureRule:
CDatabaseQueryRule

Public Member Functions

 CTextureRule ()=default
 
 ~CTextureRule () override=default
 
- Public Member Functions inherited from CDatabaseQueryRule
 CDatabaseQueryRule ()
 
virtual ~CDatabaseQueryRule ()=default
 
virtual bool Load (const TiXmlNode *node, const std::string &encoding="UTF-8")
 
virtual bool Load (const CVariant &obj)
 
virtual bool Save (TiXmlNode *parent) const
 
virtual bool Save (CVariant &obj) const
 
std::string GetParameter () const
 
void SetParameter (const std::string &value)
 
void SetParameter (const std::vector< std::string > &values)
 
virtual std::string GetWhereClause (const CDatabase &db, const std::string &strType) const
 

Static Public Member Functions

static void GetAvailableFields (std::vector< std::string > &fieldList)
 
- Static Public Member Functions inherited from CDatabaseQueryRule
static std::string GetLocalizedOperator (SEARCH_OPERATOR oper)
 
static void GetAvailableOperators (std::vector< std::string > &operatorList)
 

Protected Member Functions

int TranslateField (const char *field) const override
 
std::string TranslateField (int field) const override
 
std::string GetField (int field, const std::string &type) const override
 
FIELD_TYPE GetFieldType (int field) const override
 
std::string FormatParameter (const std::string &negate, const std::string &oper, const CDatabase &db, const std::string &type) const override
 
- Protected Member Functions inherited from CDatabaseQueryRule
std::string ValidateParameter (const std::string &parameter) const
 
virtual std::string FormatWhereClause (const std::string &negate, const std::string &oper, const std::string &param, const CDatabase &db, const std::string &type) const
 
virtual SEARCH_OPERATOR GetOperator (const std::string &type) const
 
virtual std::string GetOperatorString (SEARCH_OPERATOR op) const
 
virtual std::string GetBooleanQuery (const std::string &negate, const std::string &strType) const
 

Additional Inherited Members

- Public Types inherited from CDatabaseQueryRule
enum  SEARCH_OPERATOR {
  OPERATOR_START = 0 , OPERATOR_CONTAINS , OPERATOR_DOES_NOT_CONTAIN , OPERATOR_EQUALS ,
  OPERATOR_DOES_NOT_EQUAL , OPERATOR_STARTS_WITH , OPERATOR_ENDS_WITH , OPERATOR_GREATER_THAN ,
  OPERATOR_LESS_THAN , OPERATOR_AFTER , OPERATOR_BEFORE , OPERATOR_IN_THE_LAST ,
  OPERATOR_NOT_IN_THE_LAST , OPERATOR_TRUE , OPERATOR_FALSE , OPERATOR_BETWEEN ,
  OPERATOR_END
}
 
enum  FIELD_TYPE {
  TEXT_FIELD = 0 , REAL_FIELD , NUMERIC_FIELD , DATE_FIELD ,
  PLAYLIST_FIELD , SECONDS_FIELD , BOOLEAN_FIELD , TEXTIN_FIELD
}
 
- Public Attributes inherited from CDatabaseQueryRule
int m_field
 
SEARCH_OPERATOR m_operator
 
std::vector< std::string > m_parameter
 
- Static Protected Member Functions inherited from CDatabaseQueryRule
static SEARCH_OPERATOR TranslateOperator (const char *oper)
 
static std::string TranslateOperator (SEARCH_OPERATOR oper)
 

Constructor & Destructor Documentation

◆ CTextureRule()

CTextureRule::CTextureRule ( )
default

◆ ~CTextureRule()

CTextureRule::~CTextureRule ( )
overridedefault

Member Function Documentation

◆ FormatParameter()

std::string CTextureRule::FormatParameter ( const std::string & negate,
const std::string & oper,
const CDatabase & db,
const std::string & type ) const
overrideprotectedvirtual

Reimplemented from CDatabaseQueryRule.

◆ GetAvailableFields()

void CTextureRule::GetAvailableFields ( std::vector< std::string > & fieldList)
static

◆ GetField()

std::string CTextureRule::GetField ( int field,
const std::string & type ) const
overrideprotectedvirtual

Implements CDatabaseQueryRule.

◆ GetFieldType()

CDatabaseQueryRule::FIELD_TYPE CTextureRule::GetFieldType ( int field) const
overrideprotectedvirtual

Implements CDatabaseQueryRule.

◆ TranslateField() [1/2]

int CTextureRule::TranslateField ( const char * field) const
overrideprotectedvirtual

Implements CDatabaseQueryRule.

◆ TranslateField() [2/2]

std::string CTextureRule::TranslateField ( int field) const
overrideprotectedvirtual

Implements CDatabaseQueryRule.


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