Make order of classes in generated IFC parsing code deterministic.

pull/533/head
Alexander Gessler 2015-04-13 21:38:36 +02:00 committed by Alexander Gessler
parent e2f234707a
commit 55ca72e1c8
1 changed files with 3 additions and 2 deletions

View File

@ -44,6 +44,7 @@
entities and data types contained"""
import sys, os, re
from collections import OrderedDict
re_match_entity = re.compile(r"""
ENTITY\s+(\w+)\s* # 'ENTITY foo'
@ -68,8 +69,8 @@ re_match_field = re.compile(r"""
class Schema:
def __init__(self):
self.entities = {}
self.types = {}
self.entities = OrderedDict()
self.types = OrderedDict()
class Entity:
def __init__(self,name,parent,members):