]> pilppa.org Git - lib1wire.git/blob - src/W1TemperatureSensor.hh
Initial support for reading log-data.
[lib1wire.git] / src / W1TemperatureSensor.hh
1 /*
2  * W1TemperatureSensor.hh
3  *
4  *  Created on: Oct 20, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef W1TEMPERATURESENSOR_HH_
9 #define W1TEMPERATURESENSOR_HH_
10
11 #include "W1Device.hh"
12
13 namespace w1 {
14         class W1TemperatureSensor : public W1Device {
15                 public:
16                         W1TemperatureSensor(dirent *direntry, int family_code_param, std::string id_param);
17                         virtual ~W1TemperatureSensor();
18                         std::string get_raw_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 /* W1TEMPERATURESENSOR_HH_ */