QGIS API Documentation  2.13.0-Master
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 774 of file qgsexpression.h.

Constructor & Destructor Documentation

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

Definition at line 785 of file qgsexpression.h.

Member Function Documentation

double QgsExpression::Interval::days ( )
inline

interval length in days

Definition at line 794 of file qgsexpression.h.

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

convert a string to an interval

Definition at line 66 of file qgsexpression.cpp.

double QgsExpression::Interval::hours ( )
inline

interval length in hours

Definition at line 796 of file qgsexpression.h.

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

return an invalid interval

Definition at line 59 of file qgsexpression.cpp.

bool QgsExpression::Interval::isValid ( )
inline

getter interval validity

Definition at line 802 of file qgsexpression.h.

double QgsExpression::Interval::minutes ( )
inline

interval length in minutus

Definition at line 798 of file qgsexpression.h.

double QgsExpression::Interval::months ( )
inline

interval length in months

Definition at line 790 of file qgsexpression.h.

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

compare two intervals

Definition at line 125 of file qgsexpression.cpp.

double QgsExpression::Interval::seconds ( )
inline

interval length in seconds

Definition at line 800 of file qgsexpression.h.

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

setter interval validity

Definition at line 804 of file qgsexpression.h.

double QgsExpression::Interval::weeks ( )
inline

interval length in weeks

Definition at line 792 of file qgsexpression.h.

double QgsExpression::Interval::years ( )
inline

interval length in years

Definition at line 788 of file qgsexpression.h.


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