Add file offset to instance reference errors so that they are picked up by ifcopenshell.validate

This commit is contained in:
Thomas Krijnen
2025-03-25 11:44:46 +01:00
parent 3744b81ccd
commit bd92821b2e
3 changed files with 16 additions and 15 deletions
+9 -1
View File
@@ -66,7 +66,15 @@ class IFC_PARSE_API file_open_status {
}
};
typedef boost::variant<int, IfcUtil::IfcBaseClass*> reference_or_simple_type;
struct InstanceReference {
int v;
size_t file_offset;
operator int() const {
return v;
}
};
typedef boost::variant<InstanceReference, IfcUtil::IfcBaseClass*> reference_or_simple_type;
typedef std::list<std::pair<MutableAttributeValue, boost::variant<reference_or_simple_type, std::vector<reference_or_simple_type>, std::vector<std::vector<reference_or_simple_type>>>>> unresolved_references;
struct parse_context {