| 48 | } |
| 49 | |
| 50 | bool operator==(const DynamicProperty &lhs, const DynamicProperty &rhs) |
| 51 | { |
| 52 | if (lhs.getType() != rhs.getType()) return false; |
| 53 | |
| 54 | DynamicPropertyImpl const * plhs = dynamic_cast<DynamicPropertyImpl const*>(&lhs); |
| 55 | DynamicPropertyImpl const * prhs = dynamic_cast<DynamicPropertyImpl const*>(&rhs); |
| 56 | if (plhs && prhs) |
| 57 | { |
| 58 | return plhs->equals(*prhs); |
| 59 | } |
| 60 | throw Exception("Unknown DynamicProperty implementation."); |
| 61 | } |
| 62 | |
| 63 | DynamicPropertyImpl::DynamicPropertyImpl(DynamicPropertyType type, bool dynamic) |
| 64 | : m_type(type) |