diff --git a/src/core/udsentry.h b/src/core/udsentry.h --- a/src/core/udsentry.h +++ b/src/core/udsentry.h @@ -114,6 +114,24 @@ */ UDSEntry& operator=(UDSEntry&&); + /** + * Returns true if the entry contains the same data as other + * @since 5.62.0 + */ + bool operator==(const UDSEntry& other) + { + return d == other.d; + } + + /** + * Returns true if the entry does not contain the same data as other + * @since 5.62.0 + */ + bool operator!=(const UDSEntry& other) + { + return d != other.d; + } + /** * @return value of a textual field */ diff --git a/src/core/udsentry.cpp b/src/core/udsentry.cpp --- a/src/core/udsentry.cpp +++ b/src/core/udsentry.cpp @@ -363,6 +363,18 @@ UDSEntry& UDSEntry::operator=(const UDSEntry&) = default; UDSEntry& UDSEntry::operator=(UDSEntry&&) = default; +/* +bool UDSEntry::operator==(const UDSEntry &other) const +{ + return d == other.d; +} + +bool UDSEntry::operator!=(const UDSEntry &other) const +{ + return d != other.d; +} +*/ + QString UDSEntry::stringValue(uint field) const { return d->stringValue(field);