Fix compilation on msvc

This commit is contained in:
Thomas Krijnen
2017-12-20 16:38:55 +01:00
parent 6e525662c3
commit 8b4650b169
31 changed files with 303 additions and 224 deletions
+5
View File
@@ -203,6 +203,11 @@ class Implementation(codegen.Base):
simple_type_impl = []
for class_name, type in mapping.schema.simpletypes.items():
if class_name == "IfcPropertySetDefinitionSet":
print(repr(type), type)
print(mapping.flatten_type_string(type))
print(mapping.make_type_string(mapping.flatten_type_string(type)))
type_str = mapping.make_type_string(mapping.flatten_type_string(type))
attr_type = mapping.make_argument_type(type)
superclass = mapping.simple_type_parent(class_name)
+1 -1
View File
@@ -58,7 +58,7 @@ class Mapping:
def make_type_string(self, type):
if isinstance(type, (str, nodes.BinaryType, nodes.StringType)):
return self.express_to_cpp_typemapping.get(str(type), type)
return self.express_to_cpp_typemapping.get(str(type), "::%s::%s" % (self.schema.name.capitalize(), type))
else:
is_list = self.schema.is_entity(type.type)
is_nested_list = isinstance(type.type, nodes.AggregationType)