QGIS API Documentation  2.15.0-Master (cda387c)
Public Member Functions | Static Public Member Functions | List of all members
QgsExpression::Interval Class Reference

#include <qgsexpression.h>

Public Member Functions

 Interval (double seconds=0)
double days ()
 interval length in days More...
double hours ()
 interval length in hours More...
bool isValid ()
 getter interval validity More...
double minutes ()
 interval length in minutus More...
double months ()
 interval length in months More...
bool operator== (QgsExpression::Interval other) const
 compare two intervals More...
double seconds ()
 interval length in seconds More...
void setValid (bool valid)
 setter interval validity More...
double weeks ()
 interval length in weeks More...
double years ()
 interval length in years More...

Static Public Member Functions

static QgsExpression::Interval fromString (const QString &string)
 convert a string to an interval More...
static QgsExpression::Interval invalidInterVal ()
 return an invalid interval More...

Detailed Description

Definition at line 962 of file qgsexpression.h.

Constructor & Destructor Documentation

QgsExpression::Interval::Interval ( double  seconds = 0)

Definition at line 973 of file qgsexpression.h.

Member Function Documentation

double QgsExpression::Interval::days ( )

interval length in days

Definition at line 985 of file qgsexpression.h.

QgsExpression::Interval QgsExpression::Interval::fromString ( const QString string)

convert a string to an interval

Definition at line 67 of file qgsexpression.cpp.

double QgsExpression::Interval::hours ( )

interval length in hours

Definition at line 987 of file qgsexpression.h.

QgsExpression::Interval QgsExpression::Interval::invalidInterVal ( )

return an invalid interval

Definition at line 60 of file qgsexpression.cpp.

bool QgsExpression::Interval::isValid ( )

getter interval validity

Definition at line 993 of file qgsexpression.h.

double QgsExpression::Interval::minutes ( )

interval length in minutus

Definition at line 989 of file qgsexpression.h.

double QgsExpression::Interval::months ( )

interval length in months

Definition at line 981 of file qgsexpression.h.

bool QgsExpression::Interval::operator== ( QgsExpression::Interval  other) const

compare two intervals

Definition at line 128 of file qgsexpression.cpp.

double QgsExpression::Interval::seconds ( )

interval length in seconds

Definition at line 991 of file qgsexpression.h.

void QgsExpression::Interval::setValid ( bool  valid)

setter interval validity

Definition at line 995 of file qgsexpression.h.

double QgsExpression::Interval::weeks ( )

interval length in weeks

Definition at line 983 of file qgsexpression.h.

double QgsExpression::Interval::years ( )

interval length in years

Definition at line 979 of file qgsexpression.h.

The documentation for this class was generated from the following files: