| 88 | } |
| 89 | |
| 90 | void DesignComponent::append(DesignComponent* comp) { |
| 91 | for (auto file : comp->m_fileContents) m_fileContents.push_back(file); |
| 92 | for (auto nodeId : comp->m_nodeIds) m_nodeIds.push_back(nodeId); |
| 93 | for (auto& obj : comp->m_objects) { |
| 94 | for (auto& elem : obj.second) addObject(obj.first, elem); |
| 95 | } |
| 96 | for (auto& obj : comp->m_namedObjects) { |
| 97 | addNamedObject(obj.first, obj.second.first, obj.second.second); |
| 98 | } |
| 99 | for (const auto& dtype : comp->m_dataTypes) |
| 100 | insertDataType(dtype.first, dtype.second); |
| 101 | } |
| 102 | |
| 103 | void DesignComponent::insertDataType(std::string_view dataTypeName, |
| 104 | DataType* dataType) { |
no outgoing calls