16 #ifndef QGSDATETIMESTATISTICALSUMMARY_H 17 #define QGSDATETIMESTATISTICALSUMMARY_H 19 #include "qgis_core.h" 24 #include <QVariantList> 58 All = Count | CountDistinct | CountMissing | Min | Max | Range,
73 Statistics statistics()
const {
return mStatistics; }
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 countDistinct() const
Returns the number of distinct datetime values.
QDateTime max() const
Returns the maximum (latest) non-null datetime value.
int count() const
Returns the calculated count of values.
int countMissing() const
Returns the number of missing (null) datetime values.
Calculator for summary statistics and aggregates for a list of datetimes.
QDateTime min() const
Returns the minimum (earliest) non-null datetime value.
QSet< QDateTime > distinctValues() const
Returns the set of distinct datetime values.
void setStatistics(Statistics stats)
Sets flags which specify which statistics will be calculated.
Statistic
Enumeration of flags that specify statistics to be calculated.
A representation of the interval between two datetime values.
QgsInterval range() const
Returns the range (interval between earliest and latest non-null datetime values).