| 106 | } |
| 107 | |
| 108 | const DataType* DesignComponent::getDataType(std::string_view name) const { |
| 109 | DataTypeMap::const_iterator itr = m_dataTypes.find(name); |
| 110 | if (itr == m_dataTypes.end()) { |
| 111 | const DesignComponent* parent = (const DesignComponent*)getParentScope(); |
| 112 | if (parent) { |
| 113 | return parent->getDataType(name); |
| 114 | } else |
| 115 | return nullptr; |
| 116 | } else { |
| 117 | return (*itr).second; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | void DesignComponent::insertUsedDataType(std::string_view dataTypeName, |
| 122 | DataType* dataType) { |
no outgoing calls