| 23 | #include <usServiceProperties.h> |
| 24 | |
| 25 | bool mitk::BaseDataCompare::AreEqual(const BaseData *left, const BaseData *right, ScalarType eps, bool verbose) |
| 26 | { |
| 27 | // Do basic tests that are valid for all types here. |
| 28 | // Let specializations only implement a meaningful |
| 29 | // comparison of two non-null objects of same type |
| 30 | if (left == nullptr && right == nullptr) |
| 31 | return true; |
| 32 | |
| 33 | if (AreSameClasses(left, right, verbose)) |
| 34 | { |
| 35 | if (left->GetUID() != right->GetUID()) |
| 36 | { |
| 37 | return false; |
| 38 | } |
| 39 | return InternalAreEqual(*left, *right, eps, verbose); |
| 40 | } |
| 41 | |
| 42 | return false; |
| 43 | } |
| 44 | |
| 45 | bool mitk::BaseDataCompare::AreSameClasses(const BaseData *left, const BaseData *right, bool verbose) |
| 46 | { |