16 #ifndef QGSDATETIMESTATISTICALSUMMARY_H 17 #define QGSDATETIMESTATISTICALSUMMARY_H 19 #include "qgis_core.h" 24 #include <QVariantList> 58 All = Count | CountDistinct | CountMissing | Min | Max | Range,
94 void calculate(
const QVariantList &values );
109 void addValue(
const QVariant &value );
128 int count()
const {
return mCount; }
148 QDateTime
min()
const {
return mMin; }
153 QDateTime
max()
const {
return mMax; }
168 Statistics mStatistics;
171 QSet< QDateTime > mValues;
177 void testDateTime(
const QDateTime &dateTime );
180 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsDateTimeStatisticalSummary::Statistics )
182 #endif // QGSDATETIMESTATISTICALSUMMARY_H int count() const
Returns the calculated count of values.
int countMissing() const
Returns the number of missing (null) datetime values.
QDateTime min() const
Returns the minimum (earliest) non-null datetime value.
Calculator for summary statistics and aggregates for a list of datetimes.
QSet< QDateTime > distinctValues() const
Returns the set of distinct datetime values.
void setStatistics(Statistics stats)
Sets flags which specify which statistics will be calculated.
QDateTime max() const
Returns the maximum (latest) non-null datetime value.
Statistic
Enumeration of flags that specify statistics to be calculated.
A representation of the interval between two datetime values.
Statistics statistics() const
Returns flags which specify which statistics will be calculated.
QgsInterval range() const
Returns the range (interval between earliest and latest non-null datetime values).
int countDistinct() const
Returns the number of distinct datetime values.