X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FW1CounterDevice.hh;h=78e29abd60a1aadda85cf0ee4f6a2fd50b8cafe6;hb=e3fdbdfff2fc5e4ca6bc42e71ba8265c0e5c3719;hp=b2080e044a680039bc9cdd18ed2aea62c8b433ff;hpb=64f4c95cf6d3a772bfc721081dc39e2105c2756c;p=lib1wire.git diff --git a/src/W1CounterDevice.hh b/src/W1CounterDevice.hh index b2080e0..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_raw_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(); }; }