]> pilppa.org Git - lib1wire.git/blob - src/DeviceConfig.hh
add min,max,mean,sum and delta calculations for stored data.
[lib1wire.git] / src / DeviceConfig.hh
1 /*
2  * DeviceConfig.hh
3  *
4  *  Created on: Dec 9, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef DEVICECONFIG_HH_
9 #define DEVICECONFIG_HH_
10
11 #include <string>
12
13 namespace w1 {
14         enum enum_summary_calculation {SUM, DELTA, MEAN, MAX, MIN};
15
16         class DeviceConfig {
17                 public:
18                         DeviceConfig(std::string device_id_param);
19                         virtual ~DeviceConfig();
20                         std::string get_config_value(std::string key);
21                         enum_summary_calculation get_summary_calculation_type();
22                 private:
23                         std::string     device_id;
24         };
25 }
26
27 #endif /* DEVICECONFIG_HH_ */