27#include "kdb_export.h"
53 inline bool isValid()
const {
return v != 0; }
82 inline char toChar()
const {
return v <= maxCharTokenValue ? v : 0; }
85 inline int value()
const {
return v; }
94 inline bool operator==(
char charToken)
const {
return v == charToken; }
97 inline bool operator!=(
char charToken)
const {
return v != charToken; }
100 inline void operator=(
char charToken) { v = charToken; }
109 static const KDbToken AUTO_INCREMENT;
111 static const KDbToken BITWISE_SHIFT_LEFT;
112 static const KDbToken BITWISE_SHIFT_RIGHT;
114 static const KDbToken CHARACTER_STRING_LITERAL;
115 static const KDbToken CONCATENATION;
119 static const KDbToken DOUBLE_QUOTED_STRING;
124 static const KDbToken LESS_OR_EQUAL;
125 static const KDbToken GREATER_OR_EQUAL;
129 static const KDbToken SQL_IS_NOT_NULL;
133 static const KDbToken INTEGER_CONST;
138 static const KDbToken DATETIME_CONST;
142 static const KDbToken IDENTIFIER_DOT_ASTERISK;
143 static const KDbToken QUERY_PARAMETER;
165 static const KDbToken NOT_SIMILAR_TO;
168 static const KDbToken TABS_OR_SPACES;
169 static const KDbToken DATE_TIME_INTEGER;
174 static const KDbToken NOT_BETWEEN_AND;
179 inline KDbToken(
int value) : v(value) {}
Database driver's abstraction.
A type-safe KDbSQL token It can be used in KDb expressions.
bool operator==(char charToken) const
bool operator!=(char charToken) const
static const KDbToken BETWEEN_AND
Custom tokens are not used in parser but used as an extension in expression classes.
bool operator==(KDbToken other) const
void operator=(char charToken)
Assigns a token.
KDbToken()
Creates an invalid token.
static const int maxCharTokenValue
Maximum character token value (253)
bool operator!=(KDbToken other) const
static const int maxTokenValue
Maximum character token value.
QDebug operator<<(QDebug dbg, const PerceptualColor::MultiSpinBoxSection &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:07 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.