X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FDataReader.hh;h=b544242bf39e76b1fd272b9cae6a7f00f82329de;hb=860d8c023b82eeca9833d4a3f534c6d11a9523f3;hp=3266ec221f4812e59ef2cd59e8dc0d5edb0d423e;hpb=063ec715601bf9662797725cb39732bea0572d26;p=libplp.git diff --git a/src/DataReader.hh b/src/DataReader.hh index 3266ec2..b544242 100644 --- a/src/DataReader.hh +++ b/src/DataReader.hh @@ -37,19 +37,30 @@ 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(); + bool get_device_type(std::string& type_param); Data *get_latest_data(); protected: std::string device_id;