]> pilppa.org Git - lib1wire.git/blobdiff - src/W1CounterDevice.hh
fix build warnings
[lib1wire.git] / src / W1CounterDevice.hh
index b2080e044a680039bc9cdd18ed2aea62c8b433ff..78e29abd60a1aadda85cf0ee4f6a2fd50b8cafe6 100644 (file)
@@ -8,18 +8,21 @@
 #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(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<double> *get_raw_data();
+                       unsigned int get_data_decimal_precision();
        };
 }