#ifndef W1COUNTERDEVICE_HH_
#define W1COUNTERDEVICE_HH_
+#include <vector>
+
#include "W1Device.hh"
namespace w1 {
- class W1CounterDevice: public w1::W1Device {
+ class W1CounterDevice: public W1Device {
public:
- W1CounterDevice(dirent *direntry, int family_code_param, std::string id_param);
+ W1CounterDevice(int family_code_param,
+ std::string device_id_param,
+ dirent *direntry_param);
virtual ~W1CounterDevice();
- std::string get_value();
std::string get_unit();
- std::string get_devicetype_name();
+ std::string get_device_type();
protected:
- bool is_supported_family_code(int family_code);
+ std::vector<double> *get_raw_data();
+ unsigned int get_data_decimal_precision();
+ bool is_supported_w1_family_code(int family_code);
};
}