* @brief Returns true when two register values are identical (same type and payload); identical * rewrites must not bump slot versions or change-driven transforms would re-run on every * parser write instead of on value changes. */
| 54 | * parser write instead of on value changes. |
| 55 | */ |
| 56 | [[nodiscard]] static bool sameRegisterValue(const DataModel::RegisterValue& a, |
| 57 | const DataModel::RegisterValue& b) |
| 58 | { |
| 59 | if (a.isNumeric != b.isNumeric) |
| 60 | return false; |
| 61 | |
| 62 | return a.isNumeric ? (a.numericValue == b.numericValue) : (a.stringValue == b.stringValue); |
| 63 | } |
| 64 | |
| 65 | //-------------------------------------------------------------------------------------------------- |
| 66 | // Initialization |
no outgoing calls
no test coverage detected