| 218 | } |
| 219 | |
| 220 | AttributeValue IfcUtil::IfcBaseEntity::get(const std::string& name) const |
| 221 | { |
| 222 | auto attrs = declaration().as_entity()->all_attributes(); |
| 223 | auto iter = attrs.begin(); |
| 224 | size_t idx = 0; |
| 225 | for (; iter != attrs.end(); ++iter, ++idx) { |
| 226 | if ((*iter)->name() == name) { |
| 227 | return get_attribute_value(idx); |
| 228 | } |
| 229 | } |
| 230 | throw IfcParse::IfcException(name + " not found on " + declaration().name()); |
| 231 | } |
| 232 | |
| 233 | aggregate_of_instance::ptr IfcUtil::IfcBaseEntity::get_inverse(const std::string& name) const { |
| 234 | if (file_ == nullptr) { |
no test coverage detected