mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
schema entity initialize() method, optional argument forwarding in file::create, populate_derived in InstanceData
This commit is contained in:
@@ -122,13 +122,14 @@ void IfcUtil::unescape_xml(std::string& str) {
|
||||
boost::replace_all(str, ">", ">");
|
||||
}
|
||||
|
||||
void express::Entity::populate_derived() {
|
||||
for (auto it = declaration().as_entity()->derived().begin(); it != declaration().as_entity()->derived().end(); ++it) {
|
||||
if (*it) {
|
||||
set_attribute_value(
|
||||
std::distance(declaration().as_entity()->derived().begin(), it),
|
||||
Derived{}
|
||||
);
|
||||
void InstanceData::populate_derived_() {
|
||||
if (auto* ent = declaration_->as_entity()) {
|
||||
for (auto it = ent->derived().begin(); it != ent->derived().end(); ++it) {
|
||||
if (*it) {
|
||||
set_attribute_value(
|
||||
std::distance(ent->derived().begin(), it),
|
||||
Derived{});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user