]> pilppa.org Git - libplp.git/blob - src/DataSummary.hh
api fixes and cleanups
[libplp.git] / src / DataSummary.hh
1 /*
2  * DataSummary.hh
3  *
4  *  Created on: Aug 3, 2012
5  *      Author: lamikr
6  */
7
8 #ifndef DATASUMMARY_HH_
9 #define DATASUMMARY_HH_
10
11 #include <string>
12
13 extern "C" {
14         #include <uci.h>
15         #include <stdbool.h>
16 }
17
18 using namespace std;
19
20 enum EnumSummaryPeriod{PERIOD_YEARLY, PERIOD_MONTHLY, PERIOD_DAILY, PERIOD_HOURLY, PERIOD_MINUTELY, PERIOD_SECONDLY};
21 enum EnumSummaryCalculationType {SUM, DELTA, MIN, MAX, MEAN};
22
23 class DataSummary {
24         public:
25                 DataSummary();
26                 virtual ~DataSummary();
27                 std::string             device_id;
28                 static std::string get_summary_period_name(enum EnumSummaryPeriod period_param);
29                 static std::string get_summary_calculation_name(enum EnumSummaryCalculationType type_param);
30 };
31
32 #endif /* DATASUMMARY_HH_ */