Quantum GIS API Documentation
1.8
|
A class to represent a search string. More...
#include <qgssearchstring.h>
Public Member Functions | |
QgsSearchString () | |
construct an empty string | |
QgsSearchString (const QString &str) | |
construct and parse a string | |
QgsSearchString (const QgsSearchString &str) | |
copy constructor - makes also copy of search tree | |
~QgsSearchString () | |
destructor - deletes node tree | |
QgsSearchString & | operator= (const QgsSearchString &str) |
assignment operator takes care to copy search tree correctly | |
bool | setString (QString str) |
sets search string and parses search tree on success returns true and sets member variables to the new values | |
bool | setTree (QgsSearchTreeNode *tree) |
QgsSearchTreeNode * | tree () |
getter functions | |
QString | string () |
const QString & | parserErrorMsg () |
returns parser error message - valid only after unsuccessfull parsing | |
bool | isEmpty () |
returns true if no string is set | |
void | clear () |
clear search string | |
Private Attributes | |
QgsSearchTreeNode * | mTree |
search string and coresponding tree | |
QString | mString |
QString | mParserErrorMsg |
error message from parser |
A class to represent a search string.
Definition at line 34 of file qgssearchstring.h.
QgsSearchString::QgsSearchString | ( | const QString & | str | ) |
construct and parse a string
Definition at line 31 of file qgssearchstring.cpp.
References mTree, and setString().
QgsSearchString::QgsSearchString | ( | const QgsSearchString & | str | ) |
copy constructor - makes also copy of search tree
Definition at line 37 of file qgssearchstring.cpp.
void QgsSearchString::clear | ( | ) |
clear search string
Definition at line 111 of file qgssearchstring.cpp.
References mString, and mTree.
Referenced by operator=(), setString(), and setTree().
bool QgsSearchString::isEmpty | ( | ) |
returns true if no string is set
Definition at line 106 of file qgssearchstring.cpp.
References mTree.
QgsSearchString & QgsSearchString::operator= | ( | const QgsSearchString & | str | ) |
assignment operator takes care to copy search tree correctly
Definition at line 46 of file qgssearchstring.cpp.
const QString& QgsSearchString::parserErrorMsg | ( | ) | [inline] |
returns parser error message - valid only after unsuccessfull parsing
Definition at line 66 of file qgssearchstring.h.
bool QgsSearchString::setString | ( | QString | str | ) |
sets search string and parses search tree on success returns true and sets member variables to the new values
Definition at line 66 of file qgssearchstring.cpp.
References clear(), mParserErrorMsg, mString, mTree, parseSearchString(), and tree().
Referenced by QgsSearchString().
bool QgsSearchString::setTree | ( | QgsSearchTreeNode * | tree | ) |
Definition at line 91 of file qgssearchstring.cpp.
References clear(), QgsSearchTreeNode::makeSearchString(), mString, and mTree.
QString QgsSearchString::string | ( | ) | [inline] |
Definition at line 63 of file qgssearchstring.h.
QgsSearchTreeNode* QgsSearchString::tree | ( | ) | [inline] |
QString QgsSearchString::mParserErrorMsg [private] |
error message from parser
Definition at line 80 of file qgssearchstring.h.
Referenced by setString().
QString QgsSearchString::mString [private] |
Definition at line 77 of file qgssearchstring.h.
Referenced by clear(), operator=(), QgsSearchString(), setString(), and setTree().
QgsSearchTreeNode* QgsSearchString::mTree [private] |
search string and coresponding tree
Definition at line 76 of file qgssearchstring.h.
Referenced by clear(), isEmpty(), operator=(), QgsSearchString(), setString(), setTree(), and ~QgsSearchString().