#1537 implement schema enum cast

This commit is contained in:
Thomas Krijnen
2021-07-01 11:13:50 +02:00
parent b5c3812849
commit ffbaa6f0e0
7 changed files with 5144 additions and 0 deletions
@@ -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
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff