extend MQTT integration support

This commit is contained in:
John
2022-01-23 17:55:18 +01:00
parent 17b1bdf4a0
commit d73e407acb
5 changed files with 217 additions and 124 deletions
+9
View File
@@ -209,6 +209,12 @@ class DataField : public AttributedItem {
*/
virtual bool isSet() const { return false; }
/**
* Return whether this is a @a ValueListDataField.
* @return true if this is a @a DataFieldSet.
*/
virtual bool isList() const { return false; }
/**
* Factory method for creating new instances.
* @param isWriteMessage whether the field is part of a write message (default false).
@@ -534,6 +540,9 @@ class ValueListDataField : public SingleDataField {
// @copydoc
const ValueListDataField* clone() const override;
// @copydoc
bool isList() const override { return true; }
// @copydoc
result_t derive(const string& name, PartType partType, int divisor,
const map<unsigned int, string>& values, map<string, string>* attributes,