emits * for derived entities instead of $

Validation service 0.6.4 started giving errors for entities with derived types where $ was used. The correct coding is *.
This commit is contained in:
Richard Brice
2024-07-10 12:43:01 -07:00
parent 3a6c3a8312
commit 585eeb283a
+3
View File
@@ -1147,6 +1147,9 @@ std::string IfcEntityInstanceData::toString(bool upper) const {
ss << ","; ss << ",";
} }
if (attributes_[i] == 0) { if (attributes_[i] == 0) {
if (type_->as_entity()->derived()[i])
ss << "*";
else
ss << "$"; ss << "$";
} else { } else {
ss << attributes_[i]->toString(upper); ss << attributes_[i]->toString(upper);