[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Member Functions | Protected Attributes
KLFLib::StringMatch Struct Reference

#include <klflib.h>

Inheritance diagram for KLFLib::StringMatch:
Inheritance graph
[legend]
Collaboration diagram for KLFLib::StringMatch:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StringMatch (const QVariant &value=QVariant(), Qt::MatchFlags flags=Qt::MatchExactly)
 StringMatch (const StringMatch &m)
const Qt::MatchFlags matchFlags () const
const QVariant matchValue () const
const QString matchValueString () const

Protected Attributes

Qt::MatchFlags mFlags
QVariant mValue
QString mValueString

Detailed Description

Describes a matching criterion for a string

Note: The Qt::MatchWrap and Qt::MatchRecursive flags are ignored.

Definition at line 163 of file klflib.h.


Constructor & Destructor Documentation

KLFLib::StringMatch::StringMatch ( const QVariant value = QVariant(),
Qt::MatchFlags  flags = Qt::MatchExactly 
)
inline

Definition at line 164 of file klflib.h.

KLFLib::StringMatch::StringMatch ( const StringMatch m)
inline

Definition at line 166 of file klflib.h.


Member Function Documentation

const Qt::MatchFlags KLFLib::StringMatch::matchFlags ( ) const
inline

How the match should be tested (exact match, regex, contains, etc.), this is a binary-OR'ed value of Qt::MatchFlag enum values.

the Qt::MatchCaseSensitive may be set to match case sensitive.

Definition at line 173 of file klflib.h.

References mFlags.

Referenced by make_sql_condition(), operator<<(), and KLFLibResourceSimpleEngine::testEntryMatchConditionImpl().

const QVariant KLFLib::StringMatch::matchValue ( ) const
inline

The value that will be matched to.

Definition at line 175 of file klflib.h.

References mValue.

Referenced by KLFLibResourceSimpleEngine::testEntryMatchConditionImpl().

const QString KLFLib::StringMatch::matchValueString ( ) const
inline

equivalent to matchValue().toString(), however the conversion is performed once and cached.

Definition at line 178 of file klflib.h.

References mValueString.

Referenced by make_sql_condition(), operator<<(), and KLFLibResourceSimpleEngine::testEntryMatchConditionImpl().


Member Data Documentation

Qt::MatchFlags KLFLib::StringMatch::mFlags
protected

Definition at line 181 of file klflib.h.

Referenced by matchFlags().

QVariant KLFLib::StringMatch::mValue
protected

Definition at line 182 of file klflib.h.

Referenced by matchValue().

QString KLFLib::StringMatch::mValueString
protected

Definition at line 183 of file klflib.h.

Referenced by matchValueString().


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

Generated by doxygen 1.8.1