QGIS API Documentation  master-28efcda
QgsExpression::Interval Class Reference

#include <qgsexpression.h>

List of all members.

Public Member Functions

 Interval (double seconds=0)
 ~Interval ()
double days ()
double hours ()
bool isValid ()
double minutes ()
double months ()
bool operator== (const QgsExpression::Interval &other) const
double seconds ()
void setValid (bool valid)
double weeks ()
double years ()

Static Public Member Functions

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

Private Attributes

double mSeconds
bool mValid

Static Private Attributes

static const int DAY = 60 * 60 * 24
static const int HOUR = 60 * 60
static const int MINUTE = 60
static const int MONTHS = 60 * 60 * 24 * 30
static const int WEEKS = 60 * 60 * 24 * 7
static const int YEARS = 31557600

Detailed Description

Definition at line 371 of file qgsexpression.h.


Constructor & Destructor Documentation

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

Definition at line 382 of file qgsexpression.h.

Definition at line 41 of file qgsexpression.cpp.


Member Function Documentation

double QgsExpression::Interval::days ( ) [inline]

Definition at line 387 of file qgsexpression.h.

Referenced by fcnDay().

Definition at line 50 of file qgsexpression.cpp.

References DAY, HOUR, invalidInterVal(), MINUTE, MONTHS, tr, WEEKS, and YEARS.

Referenced by getInterval(), and isIntervalSafe().

double QgsExpression::Interval::hours ( ) [inline]

Definition at line 388 of file qgsexpression.h.

Referenced by fcnHour().

Definition at line 43 of file qgsexpression.cpp.

References setValid().

Referenced by fromString(), and getInterval().

Definition at line 390 of file qgsexpression.h.

Referenced by fcnDay(), fcnHour(), fcnMinute(), fcnMonth(), fcnSeconds(), fcnWeek(), and fcnYear().

double QgsExpression::Interval::minutes ( ) [inline]

Definition at line 389 of file qgsexpression.h.

Referenced by fcnMinute().

double QgsExpression::Interval::months ( ) [inline]

Definition at line 385 of file qgsexpression.h.

Referenced by fcnMonth().

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

Definition at line 110 of file qgsexpression.cpp.

References mSeconds.

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

Definition at line 391 of file qgsexpression.h.

Referenced by invalidInterVal().

double QgsExpression::Interval::weeks ( ) [inline]

Definition at line 386 of file qgsexpression.h.

Referenced by fcnWeek().

double QgsExpression::Interval::years ( ) [inline]

Definition at line 384 of file qgsexpression.h.

Referenced by fcnYear().


Member Data Documentation

const int QgsExpression::Interval::DAY = 60 * 60 * 24 [static, private]

Definition at line 378 of file qgsexpression.h.

Referenced by fromString().

const int QgsExpression::Interval::HOUR = 60 * 60 [static, private]

Definition at line 379 of file qgsexpression.h.

Referenced by fromString().

const int QgsExpression::Interval::MINUTE = 60 [static, private]

Definition at line 380 of file qgsexpression.h.

Referenced by fromString().

const int QgsExpression::Interval::MONTHS = 60 * 60 * 24 * 30 [static, private]

Definition at line 376 of file qgsexpression.h.

Referenced by fromString().

Definition at line 397 of file qgsexpression.h.

Referenced by operator==().

Definition at line 398 of file qgsexpression.h.

const int QgsExpression::Interval::WEEKS = 60 * 60 * 24 * 7 [static, private]

Definition at line 377 of file qgsexpression.h.

Referenced by fromString().

const int QgsExpression::Interval::YEARS = 31557600 [static, private]

Definition at line 375 of file qgsexpression.h.

Referenced by fromString().


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