]> pilppa.org Git - lib1wire.git/blob - src/W1CounterDevice.hh
816f3b823f51150f415e9638a86d201b6caf7465
[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 "W1Device.hh"
12
13 namespace w1 {
14         class W1CounterDevice: public w1::W1Device {
15                 public:
16                         W1CounterDevice(dirent *direntry, int family_code_param, std::string id_param);
17                         virtual ~W1CounterDevice();
18                         std::string get_value();
19                         std::string get_unit();
20                         std::string get_devicetype_name();
21                 protected:
22                         bool is_supported_family_code(int family_code);
23         };
24 }
25
26 #endif /* W1COUNTERDEVICE_HH_ */