16 #ifndef QGSDATETIMESTATISTICALSUMMARY_H 
   17 #define QGSDATETIMESTATISTICALSUMMARY_H 
   19 #include "qgis_core.h" 
   24 #include <QVariantList> 
   58       All = Count | CountDistinct | CountMissing | Min | Max | Range, 
 
   60     Q_DECLARE_FLAGS( Statistics, Statistic )
 
   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, 
bool isNull );
 
Calculator for summary statistics and aggregates for a list of datetimes.
QgsInterval range() const
Returns the range (interval between earliest and latest non-null datetime values).
QDateTime min() const
Returns the minimum (earliest) non-null datetime value.
Statistic
Enumeration of flags that specify statistics to be calculated.
int count() const
Returns the calculated count of values.
Statistics statistics() const
Returns flags which specify which statistics will be calculated.
void setStatistics(Statistics stats)
Sets flags which specify which statistics will be calculated.
int countMissing() const
Returns the number of missing (null) datetime values.
int countDistinct() const
Returns the number of distinct datetime values.
QSet< QDateTime > distinctValues() const
Returns the set of distinct datetime values.
QDateTime max() const
Returns the maximum (latest) non-null datetime value.
A representation of the interval between two datetime values.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.