mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
#1537 implement schema enum cast
This commit is contained in:
@@ -197,6 +197,10 @@ const char* %(schema_name)s::%(name)s::ToString(Value v) {
|
||||
%(from_string_statements)s
|
||||
throw IfcException("Unable to find find keyword in schema");
|
||||
}
|
||||
|
||||
%(schema_name)s::%(name)s::operator %(schema_name)s::%(name)s::Value() const {
|
||||
return FromString((std::string) *data_->getArgument(0));
|
||||
}
|
||||
"""
|
||||
|
||||
entity_implementation = """// Function implementations for %(name)s
|
||||
|
||||
Reference in New Issue
Block a user