| 808 | */ |
| 809 | template <class T> |
| 810 | bool hasPropertyType(const std::string& target) { |
| 811 | for (std::unique_ptr<Property>& prop : properties) { |
| 812 | if (prop->name == target) { |
| 813 | TypedProperty<T>* castedProp = dynamic_cast<TypedProperty<T>*>(prop.get()); |
| 814 | if (castedProp) { |
| 815 | return true; |
| 816 | } |
| 817 | return false; |
| 818 | } |
| 819 | } |
| 820 | return false; |
| 821 | } |
| 822 | |
| 823 | /** |
| 824 | * @brief A list of the names of all properties |