add getField(), getDataType()

This commit is contained in:
John
2021-11-20 10:11:55 +01:00
parent dea6b976e2
commit 8370ba72b4
3 changed files with 54 additions and 0 deletions
+7
View File
@@ -285,6 +285,13 @@ class Message : public AttributedItem {
*/
string getFieldName(ssize_t fieldIndex) const { return m_data->getName(fieldIndex); }
/**
* Get the specified field.
* @param fieldIndex the index of the field (excluding ignored fields).
* @return the field, or @a nullptr if not available.
*/
const SingleDataField* getField(ssize_t fieldIndex) const { return m_data->getField(fieldIndex); }
/**
* Get whether this is a write message.
* @return whether this is a write message.