diff --git a/src/lib/ebus/data.h b/src/lib/ebus/data.h index f156fd80..a5c690bd 100644 --- a/src/lib/ebus/data.h +++ b/src/lib/ebus/data.h @@ -136,7 +136,19 @@ public: * @return the field name. */ const std::string getName() { return m_name; } - //TODO add getter for all fields + + /** + * @brief Get the value unit. + * @return the value unit. + */ + const std::string getUnit() { return m_unit; } + + /** + * @brief Get the field comment. + * @return the field comment. + */ + const std::string getComment() { return m_comment; } + protected: virtual DataField* derive(std::string name, PartType partType, unsigned char offset, std::string unit, std::string comment, unsigned int divisor, std::map values) = 0;