X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FDeviceData.hh;h=367e00f0b1195ba484e7c4b1c78c67268d22c4c3;hb=af26b84b20b6d9d0e0ce690e8011a037e87dc5c8;hp=2c1641087814119a44197f4b0ce0294968ffc903;hpb=af341b7dfafac0912f513879565ebd856aa77915;p=lib1wire.git diff --git a/src/DeviceData.hh b/src/DeviceData.hh index 2c16410..367e00f 100644 --- a/src/DeviceData.hh +++ b/src/DeviceData.hh @@ -23,6 +23,13 @@ namespace w1 { DeviceData(std::string device_id); virtual ~DeviceData(); plp::DataRange *get_data_range(); + plp::DataRange *get_monthly_summary(plp::Date *date, EnumSummaryCalculationType calc_type); + /** + * Get summary data calculated from the daily data items that is meaning full. + * Depending from the device type, it may be daily mean value, daily delta, highest value, etc... + */ + plp::DataRange *get_monthly_summary(plp::Date *date); + plp::DataRange *get_monthly_summary(plp::Date *start_date, plp::Date *end_date); plp::DataRange *get_daily_summary(plp::Date *date, EnumSummaryCalculationType calc_type); /** * Get summary data calculated from the daily data items that is meaning full.