#include <DatabaseQuery.h>
 | 
| enum class   | SearchOperator {  
  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 class   | FieldType {  
  TEXT_FIELD = 0
, REAL_FIELD
, NUMERIC_FIELD
, DATE_FIELD
,  
  PLAYLIST_FIELD
, SECONDS_FIELD
, BOOLEAN_FIELD
, TEXTIN_FIELD
 
 } | 
|   | 
◆ FieldType
| Enumerator | 
|---|
| TEXT_FIELD  |  | 
| REAL_FIELD  |  | 
| NUMERIC_FIELD  |  | 
| DATE_FIELD  |  | 
| PLAYLIST_FIELD  |  | 
| SECONDS_FIELD  |  | 
| BOOLEAN_FIELD  |  | 
| TEXTIN_FIELD  |  | 
 
 
◆ SearchOperator
| Enumerator | 
|---|
| OPERATOR_START  |  | 
| 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  |  | 
 
 
◆ CDatabaseQueryRule()
  
  
      
        
          | CDatabaseQueryRule::CDatabaseQueryRule  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ ~CDatabaseQueryRule()
  
  
      
        
          | virtual CDatabaseQueryRule::~CDatabaseQueryRule  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtualdefault   | 
  
 
 
◆ FormatParameter()
  
  
      
        
          | std::string CDatabaseQueryRule::FormatParameter  | 
          ( | 
          const std::string & |           negate,  | 
         
        
           | 
           | 
          const std::string & |           oper,  | 
         
        
           | 
           | 
          const CDatabase & |           db,  | 
         
        
           | 
           | 
          const std::string & |           type ) const | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ FormatWhereClause()
  
  
      
        
          | std::string CDatabaseQueryRule::FormatWhereClause  | 
          ( | 
          const std::string & |           negate,  | 
         
        
           | 
           | 
          const std::string & |           oper,  | 
         
        
           | 
           | 
          const std::string & |           param,  | 
         
        
           | 
           | 
          const CDatabase & |           db,  | 
         
        
           | 
           | 
          const std::string & |           type ) const | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ GetAvailableOperators()
  
  
      
        
          | void CDatabaseQueryRule::GetAvailableOperators  | 
          ( | 
          std::vector< std::string > & |           operatorList | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ GetBooleanQuery()
  
  
      
        
          | virtual std::string CDatabaseQueryRule::GetBooleanQuery  | 
          ( | 
          const std::string & |           negate,  | 
         
        
           | 
           | 
          const std::string & |           strType ) const | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ GetField()
  
  
      
        
          | virtual std::string CDatabaseQueryRule::GetField  | 
          ( | 
          int |           field,  | 
         
        
           | 
           | 
          const std::string & |           type ) const | 
         
       
   | 
  
protectedpure virtual   | 
  
 
 
◆ GetFieldType()
◆ GetLocalizedOperator()
  
  
      
        
          | std::string CDatabaseQueryRule::GetLocalizedOperator  | 
          ( | 
          SearchOperator |           oper | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ GetOperator()
  
  
      
        
          | virtual SearchOperator CDatabaseQueryRule::GetOperator  | 
          ( | 
          const std::string & |           type | ) | 
           const | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ GetOperatorString()
  
  
      
        
          | std::string CDatabaseQueryRule::GetOperatorString  | 
          ( | 
          SearchOperator |           op | ) | 
           const | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ GetParameter()
      
        
          | std::string CDatabaseQueryRule::GetParameter  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetWhereClause()
  
  
      
        
          | std::string CDatabaseQueryRule::GetWhereClause  | 
          ( | 
          const CDatabase & |           db,  | 
         
        
           | 
           | 
          const std::string & |           strType ) const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Load() [1/2]
◆ Load() [2/2]
  
  
      
        
          | bool CDatabaseQueryRule::Load  | 
          ( | 
          const TiXmlNode * |           node,  | 
         
        
           | 
           | 
          const std::string & |           encoding = "UTF-8" ) | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Save() [1/2]
◆ Save() [2/2]
  
  
      
        
          | bool CDatabaseQueryRule::Save  | 
          ( | 
          TiXmlNode * |           parent | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ SetParameter() [1/2]
      
        
          | void CDatabaseQueryRule::SetParameter  | 
          ( | 
          const std::string & |           value | ) | 
           | 
        
      
 
 
◆ SetParameter() [2/2]
      
        
          | void CDatabaseQueryRule::SetParameter  | 
          ( | 
          const std::vector< std::string > & |           values | ) | 
           | 
        
      
 
 
◆ TranslateField() [1/2]
  
  
      
        
          | virtual int CDatabaseQueryRule::TranslateField  | 
          ( | 
          const char * |           field | ) | 
           const | 
         
       
   | 
  
protectedpure virtual   | 
  
 
 
◆ TranslateField() [2/2]
  
  
      
        
          | virtual std::string CDatabaseQueryRule::TranslateField  | 
          ( | 
          int |           field | ) | 
           const | 
         
       
   | 
  
protectedpure virtual   | 
  
 
 
◆ TranslateOperator() [1/2]
◆ TranslateOperator() [2/2]
  
  
      
        
          | std::string CDatabaseQueryRule::TranslateOperator  | 
          ( | 
          SearchOperator |           oper | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
 
◆ ValidateParameter()
  
  
      
        
          | std::string CDatabaseQueryRule::ValidateParameter  | 
          ( | 
          const std::string & |           parameter | ) | 
           const | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_field
      
        
          | int CDatabaseQueryRule::m_field {0} | 
        
      
 
 
◆ m_operator
◆ m_parameter
      
        
          | std::vector<std::string> CDatabaseQueryRule::m_parameter | 
        
      
 
 
The documentation for this class was generated from the following files: