]> pilppa.org Git - lib1wire.git/blob - src/W1CounterDevice.hh
Refactoring and fixes.
[lib1wire.git] / src / W1CounterDevice.hh
1 /*
2  * W1CounterDevice.hh
3  *
4  *  Created on: Oct 30, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef W1COUNTERDEVICE_HH_
9 #define W1COUNTERDEVICE_HH_
10
11 #include <vector>
12
13 #include "W1Device.hh"
14
15 namespace w1 {
16         class W1CounterDevice: public W1Device {
17                 public:
18                         W1CounterDevice(int family_code_param,
19                                         std::string device_id_param,
20                                         dirent *direntry_param);
21                         virtual ~W1CounterDevice();
22                         std::string get_unit();
23                         std::string get_device_type();
24                 protected:
25                         std::vector<double> *get_raw_data();
26                         bool is_supported_w1_family_code(int family_code);
27         };
28 }
29
30 #endif /* W1COUNTERDEVICE_HH_ */