QGIS API Documentation
2.2.0-Valmiera
|
#include <qgsexpression.h>
Public Member Functions | |
Interval (double seconds=0) | |
~Interval () | |
double | years () |
double | months () |
double | weeks () |
double | days () |
double | hours () |
double | minutes () |
double | seconds () |
bool | isValid () |
void | setValid (bool valid) |
bool | operator== (const QgsExpression::Interval &other) const |
Static Public Member Functions | |
static QgsExpression::Interval | invalidInterVal () |
static QgsExpression::Interval | fromString (QString string) |
Private Attributes | |
double | mSeconds |
bool | mValid |
Static Private Attributes | |
static const int | YEARS = 31557600 |
static const int | MONTHS = 60 * 60 * 24 * 30 |
static const int | WEEKS = 60 * 60 * 24 * 7 |
static const int | DAY = 60 * 60 * 24 |
static const int | HOUR = 60 * 60 |
static const int | MINUTE = 60 |
Definition at line 372 of file qgsexpression.h.
|
inline |
Definition at line 383 of file qgsexpression.h.
QgsExpression::Interval::~Interval | ( | ) |
Definition at line 42 of file qgsexpression.cpp.
|
inline |
Definition at line 388 of file qgsexpression.h.
Referenced by fcnDay().
|
static |
Definition at line 51 of file qgsexpression.cpp.
References DAY, HOUR, invalidInterVal(), MINUTE, MONTHS, tr, WEEKS, and YEARS.
Referenced by getInterval(), and isIntervalSafe().
|
inline |
Definition at line 389 of file qgsexpression.h.
Referenced by fcnHour().
|
static |
Definition at line 44 of file qgsexpression.cpp.
References setValid().
Referenced by fromString(), and getInterval().
|
inline |
Definition at line 392 of file qgsexpression.h.
Referenced by fcnDay(), fcnHour(), fcnMinute(), fcnMonth(), fcnSeconds(), fcnWeek(), and fcnYear().
|
inline |
Definition at line 390 of file qgsexpression.h.
Referenced by fcnMinute().
|
inline |
Definition at line 386 of file qgsexpression.h.
Referenced by fcnMonth().
bool QgsExpression::Interval::operator== | ( | const QgsExpression::Interval & | other | ) | const |
Definition at line 111 of file qgsexpression.cpp.
References mSeconds.
|
inline |
Definition at line 391 of file qgsexpression.h.
Referenced by QgsExpression::NodeBinaryOperator::computeDateTimeFromInterval(), and fcnSeconds().
|
inline |
Definition at line 393 of file qgsexpression.h.
Referenced by invalidInterVal().
|
inline |
Definition at line 387 of file qgsexpression.h.
Referenced by fcnWeek().
|
inline |
Definition at line 385 of file qgsexpression.h.
Referenced by fcnYear().
|
staticprivate |
Definition at line 379 of file qgsexpression.h.
Referenced by fromString().
|
staticprivate |
Definition at line 380 of file qgsexpression.h.
Referenced by fromString().
|
staticprivate |
Definition at line 381 of file qgsexpression.h.
Referenced by fromString().
|
staticprivate |
Definition at line 377 of file qgsexpression.h.
Referenced by fromString().
|
private |
Definition at line 398 of file qgsexpression.h.
Referenced by operator==().
|
private |
Definition at line 399 of file qgsexpression.h.
|
staticprivate |
Definition at line 378 of file qgsexpression.h.
Referenced by fromString().
|
staticprivate |
Definition at line 376 of file qgsexpression.h.
Referenced by fromString().