]> pilppa.org Git - libplp.git/blobdiff - src/DataReader.hh
support for querying daily summary from the latest date.
[libplp.git] / src / DataReader.hh
index 3266ec221f4812e59ef2cd59e8dc0d5edb0d423e..23a39d3912ec43afa02657838da46477d2e146f8 100644 (file)
@@ -37,16 +37,27 @@ namespace plp {
                        DataRange *get_monthly_summary(Date *date, EnumSummaryCalculationType calc_type);
                        DataRange *get_monthly_summary(Date *date);
                        DataRange *get_monthly_summary(Date *start_date, Date *end_date);
+
                        /**
                         * Get daily summary data calculated from the daily data items.
                         * Depending from the device type, it may be daily mean value, daily delta, highest value, etc...
                         */
+                       /*
+                        * Get Daily summary from the latest date
+                        */
+                       DataRange *get_daily_summary();
+                       /*
+                        * Get Daily summary specified by the calc_type from the latest date.
+                        */
+                       DataRange *get_daily_summary(EnumSummaryCalculationType calc_type);
                        DataRange *get_daily_summary(Date *date, EnumSummaryCalculationType calc_type);
                        DataRange *get_daily_summary(Date *date);
                        DataRange *get_daily_summary(Date *start_date, Date *end_date);
+
                        DataRange *get_hourly_summary(Date *date, EnumSummaryCalculationType calc_type);
                        DataRange *get_hourly_summary(Date *date);
                        DataRange *get_hourly_summary(Date *start_date, Date *end_date);
+
                        DataRange *get_data(Date *start_date, Date *end_date);
                        std::string get_device_id();
                        std::string get_device_type();