| 104 | */ |
| 105 | template <class T> |
| 106 | const T* GetConstProperty(const std::string& propertyKey, const ROI::Element& roi, TimeStepType t) |
| 107 | { |
| 108 | auto property = roi.GetConstProperty(propertyKey, t); |
| 109 | |
| 110 | if (property.IsNotNull()) |
| 111 | return dynamic_cast<const T*>(property.GetPointer()); |
| 112 | |
| 113 | return nullptr; |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 |
no test coverage detected