]> pilppa.org Git - lib1wire.git/blobdiff - src/W1Device.hh
Initial support for reading log-data.
[lib1wire.git] / src / W1Device.hh
index 97d0da9582ff1e55d5e5b0c53895885c565eea1a..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,10 +40,9 @@ 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;
+                       int family_code;
                        std::string id;
                        std::string name;
                        std::string dir_path;