X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FW1CounterDevice.hh;h=78e29abd60a1aadda85cf0ee4f6a2fd50b8cafe6;hb=c92af1d9accb4e328e38682e6b0d2235be48d7d1;hp=816f3b823f51150f415e9638a86d201b6caf7465;hpb=a38a5f6dd1192dd32d01008d53897443359faf6b;p=lib1wire.git diff --git a/src/W1CounterDevice.hh b/src/W1CounterDevice.hh index 816f3b8..78e29ab 100644 --- a/src/W1CounterDevice.hh +++ b/src/W1CounterDevice.hh @@ -8,18 +8,21 @@ #ifndef W1COUNTERDEVICE_HH_ #define W1COUNTERDEVICE_HH_ +#include + #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(std::string device_id_param, + std::string device_type_param, + dirent *direntry_param); virtual ~W1CounterDevice(); - std::string get_value(); std::string get_unit(); - std::string get_devicetype_name(); protected: - bool is_supported_family_code(int family_code); + std::vector *get_raw_data(); + unsigned int get_data_decimal_precision(); }; }