QGIS/python/core/qgssearchstring.sip
wonder 3a7851c8a1 Added python bindings for search strings
git-svn-id: http://svn.osgeo.org/qgis/trunk@12579 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-22 14:52:54 +00:00

43 lines
1.1 KiB
Plaintext

class QgsSearchString
{
%TypeHeaderCode
#include "qgssearchstring.h"
%End
public:
//! constructor
QgsSearchString();
//! copy constructor - makes also copy of search tree
QgsSearchString( const QgsSearchString& str );
//! destructor - deletes node tree
~QgsSearchString();
//! assignment operator takes care to copy search tree correctly
// unable to wrap QgsSearchString& operator=( const QgsSearchString& str );
/** sets search string and parses search tree
on success returns true and sets member variables to the new values */
bool setString( QString str );
/** copies tree and makes search string for it
on success returns true and sets member variables to the new values */
bool setTree( QgsSearchTreeNode* tree );
//! getter functions
QgsSearchTreeNode* tree();
QString string();
//! returns parser error message - valid only after unsuccessfull parsing
const QString& parserErrorMsg();
//! returns true if no string is set
bool isEmpty();
//! clear search string
void clear();
};