mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
Runtime schema by name
This commit is contained in:
@@ -194,11 +194,13 @@ class SchemaClass(codegen.Base):
|
||||
#endif
|
||||
""")
|
||||
|
||||
statements.append("namespace %s {" % mapping.schema.name)
|
||||
|
||||
statements.extend(('const schema_definition& get_schema() {',
|
||||
'',
|
||||
' static const schema_definition* s = populate_schema();',
|
||||
' return *s;',
|
||||
'}','',''))
|
||||
'}','}','',''))
|
||||
|
||||
self.str = "\n".join(statements)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user