From 73534d2b451b62d07f4867737fbcd13d97dfa792 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 16 Nov 2014 10:52:45 +0100 Subject: [PATCH] added getters --- src/lib/ebus/data.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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;