]> pilppa.org Git - libplp.git/blobdiff - src/DataSummary.hh
api fixes and cleanups
[libplp.git] / src / DataSummary.hh
diff --git a/src/DataSummary.hh b/src/DataSummary.hh
new file mode 100644 (file)
index 0000000..3b08761
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * DataSummary.hh
+ *
+ *  Created on: Aug 3, 2012
+ *      Author: lamikr
+ */
+
+#ifndef DATASUMMARY_HH_
+#define DATASUMMARY_HH_
+
+#include <string>
+
+extern "C" {
+       #include <uci.h>
+       #include <stdbool.h>
+}
+
+using namespace std;
+
+enum EnumSummaryPeriod{PERIOD_YEARLY, PERIOD_MONTHLY, PERIOD_DAILY, PERIOD_HOURLY, PERIOD_MINUTELY, PERIOD_SECONDLY};
+enum EnumSummaryCalculationType {SUM, DELTA, MIN, MAX, MEAN};
+
+class DataSummary {
+       public:
+               DataSummary();
+               virtual ~DataSummary();
+               std::string             device_id;
+               static std::string get_summary_period_name(enum EnumSummaryPeriod period_param);
+               static std::string get_summary_calculation_name(enum EnumSummaryCalculationType type_param);
+};
+
+#endif /* DATASUMMARY_HH_ */