#include <DatabaseQuery.h>
|
| 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
} |
| |
◆ FIELD_TYPE
| Enumerator |
|---|
| TEXT_FIELD | |
| REAL_FIELD | |
| NUMERIC_FIELD | |
| DATE_FIELD | |
| PLAYLIST_FIELD | |
| SECONDS_FIELD | |
| BOOLEAN_FIELD | |
| TEXTIN_FIELD | |
◆ SEARCH_OPERATOR
| 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 |
( |
| ) |
|
◆ ~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()
| virtual FIELD_TYPE CDatabaseQueryRule::GetFieldType |
( |
int |
field | ) |
const |
|
protectedpure virtual |
◆ GetLocalizedOperator()
| std::string CDatabaseQueryRule::GetLocalizedOperator |
( |
SEARCH_OPERATOR |
oper | ) |
|
|
static |
◆ GetOperator()
| virtual SEARCH_OPERATOR CDatabaseQueryRule::GetOperator |
( |
const std::string & |
type | ) |
const |
|
inlineprotectedvirtual |
◆ GetOperatorString()
| std::string CDatabaseQueryRule::GetOperatorString |
( |
SEARCH_OPERATOR |
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]
◆ ValidateParameter()
| std::string CDatabaseQueryRule::ValidateParameter |
( |
const std::string & |
parameter | ) |
const |
|
protected |
◆ m_field
| int CDatabaseQueryRule::m_field |
◆ m_operator
◆ m_parameter
| std::vector<std::string> CDatabaseQueryRule::m_parameter |
The documentation for this class was generated from the following files: