Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
core
qgssearchstring.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssearchstring.h
3
interface for parsing and evaluation of search strings
4
--------------------
5
begin : 2005-07-26
6
copyright : (C) 2005 by Martin Dobias
7
email : won.der at centrum.sk
8
***************************************************************************/
9
10
/***************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
/* $Id$ */
19
20
#ifndef QGSSEARCHSTRING_H
21
#define QGSSEARCHSTRING_H
22
23
#include <QString>
24
25
class
QgsSearchTreeNode
;
26
35
class
CORE_EXPORT
QgsSearchString
36
{
37
public
:
39
QgsSearchString
();
40
43
QgsSearchString
(
const
QString & str );
44
46
QgsSearchString
(
const
QgsSearchString
& str );
47
49
~
QgsSearchString
();
50
52
QgsSearchString
& operator=(
const
QgsSearchString
& str );
53
56
bool
setString( QString str );
57
58
/* copies tree and makes search string for it
59
on success returns true and sets member variables to the new values */
60
bool
setTree(
QgsSearchTreeNode
* tree );
61
63
QgsSearchTreeNode
*
tree
() {
return
mTree; }
64
QString
string
() {
return
mString; }
65
67
const
QString&
parserErrorMsg
() {
return
mParserErrorMsg; }
68
70
bool
isEmpty();
71
73
void
clear();
74
75
private
:
77
QgsSearchTreeNode
*
mTree
;
78
QString
mString
;
79
81
QString
mParserErrorMsg
;
82
};
83
84
#endif
Generated on Thu Sep 19 2013 17:30:54 for Quantum GIS API Documentation by
1.8.4