Quantum GIS API Documentation  1.7.4
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
QgsSearchTreeValue Class Reference

#include <qgssearchtreenode.h>

List of all members.

Public Types

enum  Type { valError, valString, valNumber, valNull }

Public Member Functions

 QgsSearchTreeValue ()
 QgsSearchTreeValue (QString string)
 QgsSearchTreeValue (double number)
 QgsSearchTreeValue (int error, QString errorMsg)
bool isNumeric ()
bool isError ()
bool isNull ()
QString & string ()
double number ()

Static Public Member Functions

static int compare (QgsSearchTreeValue &value1, QgsSearchTreeValue &value2, Qt::CaseSensitivity=Qt::CaseSensitive)

Private Attributes

Type mType
QString mString
double mNumber

Detailed Description

Definition at line 254 of file qgssearchtreenode.h.

Member Enumeration Documentation


Definition at line 258 of file qgssearchtreenode.h.

Constructor & Destructor Documentation

Definition at line 266 of file qgssearchtreenode.h.

QgsSearchTreeValue::QgsSearchTreeValue ( QString  string) [inline]

Definition at line 267 of file qgssearchtreenode.h.

QgsSearchTreeValue::QgsSearchTreeValue ( double  number) [inline]

Definition at line 268 of file qgssearchtreenode.h.

QgsSearchTreeValue::QgsSearchTreeValue ( int  error,
QString  errorMsg 
) [inline]

Definition at line 269 of file qgssearchtreenode.h.

Member Function Documentation

int QgsSearchTreeValue::compare ( QgsSearchTreeValue value1,
QgsSearchTreeValue value2,
Qt::CaseSensitivity  cs = Qt::CaseSensitive 
) [static]

Definition at line 860 of file qgssearchtreenode.cpp.

References isNumeric(), number(), QgsDebugMsgLevel, and string().

Referenced by QgsSearchTreeNode::checkAgainst().

bool QgsSearchTreeValue::isError ( ) [inline]

Definition at line 275 of file qgssearchtreenode.h.

Referenced by QgsSearchTreeNode::getValue().

bool QgsSearchTreeValue::isNull ( ) [inline]

Definition at line 276 of file qgssearchtreenode.h.

Referenced by QgsSearchTreeNode::checkAgainst().

bool QgsSearchTreeValue::isNumeric ( ) [inline]
double QgsSearchTreeValue::number ( ) [inline]
QString& QgsSearchTreeValue::string ( ) [inline]

Member Data Documentation

double QgsSearchTreeValue::mNumber [private]

Definition at line 284 of file qgssearchtreenode.h.

QString QgsSearchTreeValue::mString [private]

Definition at line 283 of file qgssearchtreenode.h.

Definition at line 282 of file qgssearchtreenode.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines