MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get

Method get

src/ifcparse/IfcUtil.cpp:220–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220AttributeValue 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
233aggregate_of_instance::ptr IfcUtil::IfcBaseEntity::get_inverse(const std::string& name) const {
234 if (file_ == nullptr) {

Callers 15

plain_text_messageFunction · 0.45
operator->Method · 0.45
TokenStringMethod · 0.45
get_parent_of_relationFunction · 0.45
get_children_of_relationFunction · 0.45
executeFunction · 0.45
_extract_docsFunction · 0.45
patchMethod · 0.45
patchMethod · 0.45
create_geometryMethod · 0.45
insert_dataMethod · 0.45
mergeMethod · 0.45

Calls 4

declarationClass · 0.70
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected