]> pilppa.org Git - lib1wire.git/blobdiff - src/W1Device.hh
Initial support for reading log-data.
[lib1wire.git] / src / W1Device.hh
index 15deba21b7d09bd7210a43792b28cfecf6e8eb69..9eab016288075cb646072d383654465b900728a3 100644 (file)
@@ -31,7 +31,8 @@ namespace w1 {
                        std::string get_id();
                        std::string get_name();
                        void set_name(std::string name_param);
-                       virtual std::string get_value() = 0;
+                       virtual std::string get_raw_value() = 0;
+                       std::string get_formatted_value();
                        virtual std::string get_unit() = 0;
                        virtual std::string get_devicetype_name() = 0;
                        std::string get_time();
@@ -39,8 +40,7 @@ namespace w1 {
                        virtual void store();
                protected:
                        void add_to_memory_cache(std::string formatted_data);
-                       std::string get_formatted_data();
-                       std::string get_formatted_data(std::string value);
+                       std::string get_formatted_value(std::string value);
                        virtual bool is_supported_family_code(int family_code) = 0;
                        int family_code;
                        std::string id;